View RSS Feed

Most Popular Blogs

  1. Closer Look at Swing. Where is MVC?

    by , 04-26-2012 at 09:42 PM
    Model delegate which a common MVC flavor is being implemented by the internally swing, which coalesces controller and view to UI delegate. Rarely, developers deal with controller or view part while applications are being written. Instead they deal with components.Swing components are not at all the part of MVC but they are considered as mediators present b/w view, model and controller.

    Custom coding is involved in building of the components and model creations to communicate to the ...
  2. Spring Logging - Log4J

    by , 07-07-2012 at 07:39 PM
    The Spring framework has great support for Log4J and it is easy to use Log4J for logging inside Spring applications. In this section, we will discuss the Log4J and Spring integration and how you can use it.
    To install the Log4J on you machine, download it from the apache website, extract the zip file and use the log4j.jar in your project.
    The Jakarta commons loggin (JCL) API provides an alternative approach to support loggin in your Spring application. Jakarta commons loggin API can ...
  3. Spring Quick Guide

    by , 07-07-2012 at 07:40 PM
    For Java enterprise application development the most popular development framework is Spring. The Spring framework is being used by the million of developers around the work. It is possible to create easily testable, high performing and reusable code.

    The Spring is an open source Java platform based Framewrok. The Spring framework was first released in June 2003 under the Apache 2.0 license and it was written by Rod Johnson initially.

    When considering the transparency ...
  4. Spring Framework Advantages

    by , 07-07-2012 at 07:41 PM
    Following are the benefits offered by the Spring Framework.
    It is possible to develop enterprise level application in Spring using POJOS. The major benefit of using POJO is that you can avoid EJB container like application server. In such cases you just need to use a web server like Tomcat or any other commercial product.
    A modular style is used to organize Spring. There are lot of packages and classes but you must only consider the classes being used by you.
    The spring ...
  5. Disadvantages of Struts2

    by , 07-07-2012 at 07:44 PM
    Struts2 provides a lot of good features and functionalities but there also few disadvantages of Struts2 in specific environments and conditions. We will discuss the disadvantages of Struts2 in this topic.

    Bigger Learning Curve: In order to use Struts MVC framework, you must have expertise with JSP, Servlet API and the Struts framework.
    Poor Documentation: Struts2 offers limited online resources for learning as compared to standard JSP and Servlet API. Also the new user ...
  6. Architecture of Struts 2

    by , 07-07-2012 at 07:46 PM
    Struts2 is a MVC/MVC2 framework from a high level view. The following 5 components provide the Struts2 Model View Controller Pattern.

    Value Stack

    In Struts2 the actions take the model role instead of controller so it is little different from the traditional Model view controller framework. But there is always a overlap between the two.

    Name:  1.jpg
Views: 3426
Size:  56.1 KB
  7. Struts2 Localization and internationalization

    by , 07-07-2012 at 07:47 PM
    In order to make products and services compatiable with local cultures and languages, the internationalization process is used. Localization is a process that plans implement products and services and make them adaptable to specific culture and language. The internationalization process is also refered as localization enablement or translation. Internationalization is also abbreviated as i18n.

    It starts with i.
    It ends with n
    It contains 18 characters between ...
  8. Type Conversion in Struts

    by , 07-07-2012 at 07:50 PM
    The protocol treats all the HTTP requests as a String. It may include Boolean, integers, dates, numbers, decimals and everything. According to HTTP protocol, everything is a string. As compared to this approach, the struts class supports the data types and it has properties.
    Different types of converters are used by the struts so that it can perform heavy lifting. For example, in your Action class you have a specific data type like integer; it will be automatically converted into integer ...
  9. Tag Library Introduction

    by , 07-07-2012 at 07:51 PM
    The programming language objects are created and accessed using action elements in Java Server Pages and the output stream is affected. There are 6 standard actions that are defined in the JSP specification and the JSP compliant implementation must provide these standards.
    The custom actions which are reusable modules are also supported by the JSP technology in addition with standard actions. The custom tag in a JSP page is used to invoke the customer action. The custom tags collection makes ...
  10. Cooperating Tags in JSP

    , 07-07-2012 at 07:55 PM
    Java Server Pages provides support for two types of object sharing. This object sharing is achieved using cooperating tags.

    In first approach, an object is given a name and page context is used to store this object. The page context is implicit object that can be accessed by tag handlers and JSP pages. The following command is used to access a shared object that has been given a name.
    Java Code:
    pageContext.getAttribute( name, scope );
    In second approach of ...
  11. JavaServer Pages Introduction

    , 07-07-2012 at 07:56 PM
    Java Server Pages is a well known technology for web based application development. It supports:

    Dynamic content handling
    Insertion of Java code as expression element in HTML tags.
    Use of special JSP tags

    Most of the JSP tags start with <% and these tags ends with %>.

    Java Server Pages are compiled to Servlets and are a specific type of servelts however it offers more benefits over the traditional servlets. Also Java Server ...
  12. Form Processing in JSP

    , 07-07-2012 at 08:10 PM
    In a JSP progam, a programmer may have handled situations in which he sends information from browser to server and finally this information is communicated to backend business logic. Following two methods are used by the web browsers to send form data and information to web server.

    GET Method: The encoded information is sent from browser to the server using this GET method. The information and page URL is separated using the ? character. Following is an example of GET method information ...
  13. Help centering the square inside

    by , 09-14-2013 at 01:40 AM
    Quote Originally Posted by Messi5454 View Post
    I emailed the instructor my code and he said the only thing i have to do is center my inner square .
    i attached picture
    Attachment 5522

    Java Code:
    import java.awt.*;
    import javax.swing.*;
    // begining of the Gepmetry class
    // geometry class uses JFrame to draw the window and 
    // geometric shapes  
    public class Hw2  extends JFrame {
    //Variables to use for drawing 3 shapes.
Page 4 of 4 FirstFirst ... 234