The Action Class

The Action can be very simple or very complicated. For example, when a user clicks on the create new account button, control is passed to NewAccountAction (shown in Listing 8.1).

Listing 8.1.
 package stocktrack.struts.action; import; import javax.servlet.ServletException; import javax.servlet.http.*; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionForm; import org.apache.struts.action.Action; /** * stocktrack.struts.action.IndexAction class. * this class used by Struts Framework process the * stocktrack.struts.form.BlankForm form. * - method invoked by HTTP request is perform(....) * - form name is ...

Get Struts Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.