View Single Post
  #2 (permalink)  
Old 08-07-2007, 04:30 PM
carl carl is offline
Member
 
Join Date: Jul 2007
Posts: 35
carl is on a distinguished road
Please check this:

login.jsp

Code:
<%@ page import = "lbm.jsputil.*" %> <jsp:useBean id="_loginJSPBean" class="lbm.examples.LoginJSPBean" scope="session"/> <jsp:setProperty name="_loginJSPBean" property="*"/> <% AbstractJSPBean _abstractJSPBean = _loginJSPBean; %> <%@ include file="includeheader.jsp" %> <html> <head><title>Vote Login</title></head> <body bgcolor="white"> <font size=4> Please enter your Voter ID and Password </font> <font size="3" color="Red"> <jsp:getProperty name="_loginJSPBean" property="errorMsg"/> </font> <font size=3> <form method=post> Voter ID <input type=text name=voterId value=<jsp:getProperty name="_loginJSPBean" property="voterId"/>> Password <input type=password name=password value=<jsp:getProperty name="_loginJSPBean" property="password"/>> <input type=submit value="Login"> </form> </font> </body> </html> <%@ include file="includefooter.jsp" %>
includeheader.jsp

Code:
<%-- Set the SharedSessionBean --%> <jsp:useBean id="_sharedSessionBean" class="lbm.jsputil.SharedSessionBean" scope="session"/> <% _abstractJSPBean.setSharedSessionBean(_sharedSessionBean); %> <%-- Set implicit Servlet objects --%> <% _abstractJSPBean.setRequest(request); %> <% _abstractJSPBean.setResponse(response); %> <% _abstractJSPBean.setServlet(this); %> <%-- Perform the processing associated with the JSP --%> <% _abstractJSPBean.process(); %> <%-- If getSkipPageOutput equals false, do not output the JSP page --%> <% if (! _abstractJSPBean.getSkipPageOutput()) { %>
Greetings.
Reply With Quote