Request Lifecycle in Struts 2.0 applications

struts2-thumbnail

1User Sends request: User sends a request to the server for some resource. FilterDispatcher determines the appropriate action: The FilterDispatcher looks at the request and then determines the appropriate Action. Interceptors are applied: Interceptors configured for applying the common functionalities such as workflow, validation, file upload etc. are automatically applied to the request. Execution of […]

Struts 1.0 Vs Struts 2.0

struts2-thumbnail

Difference between Struts 1.0 and Struts 2.0 In the following section, we are going to compare the various features between the two frameworks. Struts 2.0 is very simple as compared to struts 1.0,1.1, few of its excelent features are: 1.Servlet Dependency also read: Struts 2 Tutorials Struts Interview Questions Struts and Spring Integration Actions in […]

Life Cycle of JSF Components

JSF-Thumbnail

Restore View The JSF servlet builds the view of the requested page as a component tree that contains the information associated with all components. It also saves the view in a FacesContext instance, thereby making it possible to repopulate the page if necessary—for example, when the user doesn’t fill out a form as required. If […]

Hiding and Overriding Methods In Java

java-thumbnail

Now in section Inheritance mainly in Hiding And Overriding Methods can we predict the output of the following program? also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials It Prints: Here the overriding methods getX and getY in class RealPoint have the same return types as the methods of class […]

Static keyword in Java

java-thumbnail

What is Static? static variables and static methods might better have been called perClass variables and methods. They inherited this misleading terminology from C++. They are the opposite of instance variables and methods that work on a particular object. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Can we […]

Decorator Design Pattern in Java

java-thumbnail

Intent of Decorator Design Pattern: Attach additional responsibilities to an object dynamically.Decorators provide a flexible alternative to subclassing for extending functionality.[GoF,p175] Client specified embellishment of a core object by recursively wrapping it. Wrapping a gift,putting it in a box and wrapping the box. also read: Design Pattern Interview Questions Factory Design Pattern State design pattern […]

Iterator Pattern

java-thumbnail

What is Iterator Pattern? Provide a way to access the elements of the aggregate object sequentially without exposing its underlying representation. Aggregate object is an object that contains other objects for the purpose of grouping those objects as a unit.It is also called a container or a collection.Examples are linkedList,Hashtable,ArrayList etc. also read: Design Pattern […]

Abstract Factory Pattern

java-thumbnail

What is Abstract Factory Pattern? Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Wikipedia says: A software design pattern, the Abstract Factory Pattern provides a way to encapsulate a group of individual factories that have a common theme. also read: Design Pattern Interview Questions Factory Design Pattern […]

Template Design Pattern

java-thumbnail

What is Template Design Pattern? An abstract class defines various methods and has one non-overridden method which calls the various methods. also read: Design Pattern Interview Questions Factory Design Pattern State design pattern Wikipedia Says: A template method defines the program skeleton of an aligorithm.The aligorithm itself is made abstract,and the subclasses override the abstract […]

JAX-WS Web Services in NetBeans 6.1

webservices-thumbnail

Java API for XML Web Services(JAX-WS) is an important part of latest JEE specification (Java EE 5 platform). In this article we will see how to develop JAX-WS based web services using NetBeans 6.1 IDE. This article will not provide any of the theoretical information about JAX-WS. Software used NetBeans 6.1 Java 5.0/6.0 GlassFish V2 […]

Close
Please support the site
By clicking any of these buttons you help our site to get better