RSS
Most Recent Articles
Comparing Struts 1 and 2
FeatureStruts 1Struts 2 Action classes Struts 1 requiresSingleton pattern
public class Singleton { private static Singleton _instance = null;Hibernate cfg xml
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"  Different ways to create objects in Java
There are four different ways (I really don’t know is there a fifth way to do this) to create objects in java: 1. Using new keywordThis is the most common way to create an object in java. I read somewhere that almost 99% of objects are created in this wayWhat are the types of Hibernate instance states ?
Three types of instance states: Transient -The instance is not associated with any persistence context Persistent -The instance is associated with a persistence context Detached -The instance was associated with a persistence context which has beWhat are Callback interfaces?
Callback interfaces allow the application to receive a notification when something interesting happens to an object—for example, when an object is loaded, saved, or deleted. Hibernate applications don't need to implement these callbacks, but they're useful for implementing certain kinWhat are the ways to express joins in HQL?
HQL provides four ways of expressing (inner and outer) joins:- An implicit association join An ordinary join in the FROM clause A fetch join in the FROM clause. A theta-style join in the WHERE clausWhat is Hibernate proxy?
The proxy attribute enables lazy initialization of persistent instances of the class. Hibernate will initially return CGLIB proxies which implement the named interface. The actual persistent object will be loaded when a method of the proxy is invoked.What is the difference between merge and update?
update () : When the session does not contain an persistent instance with the same identifier, and if it is sure use update for the data persistence in hibernate. merge (): Irrespective of the state of a session, if there is a need to save the modificaWhat are the Core interfaces are of Hibernate framework?
The five core interfaces are used in just about every Hibernate application. Using these interfaces, you can store and retrieve persistent objects and control transactions. Session interface SessionFactory interface Configuration interfaceWhat is MVC?
Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. Model : The model contains the core of the application's functionality. ThTiles
To use Tiles in the Struts application, we need to add the following <plug-in> definition to the struts-config.xml file.Multiple Struts Configuration Files Tutorial
Your struts-config.xml file is large and it is hard to maintain am I right? Not anymore you can easily break it into multiple xml files like this.Difference between DispatchAction and LookupDispatchAction
DispatchAction dispatches the action based on the parameter value. where as lookupdispatchAction which is a subclass of it, inherits all the properties but has one more additional method called getmethodkey() for all those mappings. Say you have 3 bWhat is the difference between interface and abstract class?
* interface contains methods that must be abstract; abstract class may contain concrete methods. * interface contains variables that must be static and final; abstract class may contain non-final and final variables. * members in an interfacePage Navigation: 1 2 3 (All)
