Posts

Showing posts from May 8, 2005

0 to Struts in 60 minutes - Part II

Image
Our goal : First Iteration : * set up a login page, login formbean, login process Actionservlet stub Second Iteration : * set up log4j for logging purposes * use a pattern - Data Access Object pattern * talk to mysql database * logic for authentication in login actionservlet First Iteration : Setting up login page, login process servlet stub, welcome page Lets build this project iteratively. First the skeleton and then slowly we will start adding sinews adding more complexity. A simple login page that submits the values to the login servlet. ( Well it has to go through the controller servlet - we will see that in a minute ) - and the login process servlet right now doesnt do anything big - just accepts the values and displays the username being entered. It still does not have the ability to talk to database - it has to wait !! We need to create 4 files ( 2 JSP,2 Java) and tamper with struts_config.xml Login.jsp <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html&qu