Struts 2 Bean Tag Example

In Struts 2, the  “bean” tag is used to create a Java class and place it in the stack’s Context. In this lesson, we will use the “bean” tag to instantiate a Java object inside a JSP page, and then display the content…

Hibernate Transaction Management Using Spring

In Hibernate, communication with the database always occurs through a database transaction. A Hibernate application can run in : non-managed environment : the developer needs to manage the database transactions himself by manually setting the begin, commit or rollback. managed…

Spring Security Remember Me Example

In this lesson, we will see how to implement the Remember-me authentication so that our web application will be able to remember its users between sessions and allow them access without needing to log in every time. In our case, we…