View RSS Feed

Recent Blogs Posts

  1. How to validate form in Struts 2's action

    by , 12-10-2011 at 06:41 AM
    This article will guide you how to validate a form from Strutís action classes. We are going to develop a simple web application that allows user to enter email address and password to login. The email and password will be validated on the server side, in the action class.
    You are assumed to be familiar with Java web development using Eclipse IDE and understand how a Struts application works at the fundamental level. You also know how to deploy a Java web application on Tomcat server. ...
  2. Struts 1 vs Struts 2

    by , 11-18-2011 at 07:17 PM (My Java Tips)
    In the following article, we are going to compare the various features between the two frameworks. Struts 2 is very simple as compared to struts 1, few of its important features are:

    1. Servlet Dependency

    Actions in Struts1 have dependencies on the servlet API since the HttpServletRequest and HttpServletResponse objects are passed to the execute method when an Action is invoked while in case of Struts 2, Actions are not container dependent because they are made of simple ...