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.

Miscellaneous<br />

Servlet login<br />

There are two additional files included with the project that are used in the<br />

application. One of which are used in numerous locations throughout the<br />

application. The help.html file (located in WebContent) contains a legend of<br />

button images and descriptions. This file is linked from every list and detail<br />

database driven JSPs (for example, CustomerMasterView.jsp,<br />

SearchItemDetailsView.jsp, etc.). The second file (aboutus.html) is located in<br />

the corporate_information folder and is accessed from index.html. This file<br />

contains information about the company.<br />

The first step in the login process is login.html. This page collects the user name<br />

and password from the user and passes control to LoginServlet. LoginServlet<br />

captures the user name and password from the login.html form, verifies them<br />

using additional database connection wizards, and then forwards the user to the<br />

site administration selection page; admin.html.<br />

USER table of SALESAPP<br />

DBDriver.java<br />

DBConnection.java<br />

Database connection servlets<br />

login.html LoginServlet.java admin.html<br />

Figure C-10 Servlet login process - LogWriter.java not shown<br />

The table below lists the main files involved in this portion of the application.<br />

Appendix C. Online Catalog application 629

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

Saved successfully!

Ooh no, something went wrong!