29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table C-11 Servlet login items<br />

Item Folder/Package Description<br />

login.html servlet_login Provides the interface to login to the<br />

administration page.<br />

LoginServlet.java common This servlet gets the login data from<br />

login.html and verifies that the user<br />

and password exist in the<br />

SALESAPP database. If they are<br />

verified, the user is sent to<br />

admin.html (in the administration<br />

folder). If not, the user is sent to a<br />

servlet-generated page that asks the<br />

user to try logging in again. This is all<br />

done using the database connection<br />

established by DBConnection.java.<br />

LogWriter.java common This servlet outputs any errors that<br />

occur in the login process. If an<br />

invalid user or password is entered in<br />

LoginServlet.java, this servlet<br />

outputs it in a login file as specified in<br />

the util.properties file. This servlet<br />

will also output any database<br />

connection errors that occur in<br />

DBConnection.java or<br />

DBDriver.java.<br />

db.properties JavaSource This file contains the database<br />

connection information for<br />

DBDriver.java.<br />

util.properties JavaSource This file contains the path where log<br />

files are created by LogWriter.java.<br />

DBConnection.java common This servlet gets the database<br />

connection information from<br />

DBDriver.java and creates a<br />

connection to the SALESAPP<br />

database.<br />

DBDriver.java common This servlet gets the database<br />

connection information from the<br />

db.properties file.<br />

Note: For additional information about this component please see “Using<br />

servlets in the Online Catalog sample” on page 232.<br />

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

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

Saved successfully!

Ooh no, something went wrong!