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 ActionForms 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset