Conclusions


The Action is responsible for integrating the View with the business logic. It also decides where to pass control to by returning an ActionForward , or by processing the request itself and returning null.

You can store multiple ActionForm s on the session, and then have one Action process them all, using getAttribute to retrieve them all by their form name .

Struts also offers an opportunity to do access control on pages without requiring the pages themselves to have access control code in them. This is done by placing the access control in the Action classes that are used to forward to the restricted pages. Because Struts doesn't reveal the underlying JSP files that it displays, the user will have no way of knowing how to get to them without going through the Action .



Struts Kick Start
Struts Kick Start
ISBN: 0672324725
EAN: 2147483647
Year: 2002
Pages: 177

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net