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.

Note: We did not follow this sample through to completion. There are four<br />

actions that are referenced in the code but not coded: customer.do, orders.do,<br />

additem.do, and edititem.do. This sample is designed to show you how to use<br />

the tools to create the Struts components. For an end-to-end example, see<br />

<strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express: A Development Example for New<br />

Developers, SG24-6301.<br />

The following diagram illustrates the sequence of events that occur when a user<br />

attempts to log in to the administrative function of the site as a “write access”<br />

administrator.<br />

Web Browser<br />

Figure 12-21 Login flow for admin2 user<br />

The steps in this sample will follow the same flow as outlined in 12.2.1, “Struts<br />

development process” on page 389. The only difference is that after the Struts<br />

components have been created, we will integrated the login.jsp page with the<br />

rest of the application by adding a hyperlink to all of the pages.<br />

426 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook<br />

8<br />

1<br />

ActionServlet LoginAction<br />

7<br />

admin2.jsp<br />

3<br />

6<br />

2<br />

4<br />

LoginForm<br />

5

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

Saved successfully!

Ooh no, something went wrong!