29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

{<br />

}<br />

saveErrors(request, errors);<br />

//Finish with<br />

return (forward);<br />

}<br />

}<br />

Note: For simplicity, the logic of authenticating the administrator has been<br />

implemented within the action class itself. In a practical Web application,<br />

the action class should invoke model objects which implement the<br />

business logic.<br />

4. Save your changes and close the Java editor.<br />

5. From the Web diagram editor, double-click the /login action mapping node to<br />

open the Configuration file editor.<br />

6. The editor opens to the Action Mappings tab with the /login action mapping<br />

selected.<br />

7. Select the Local Forwards tab at the top of the page. Notice that the<br />

forwards have been set for the /login action mapping.<br />

Chapter 12. Using Struts 447

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!