Update of /cvsroot/struts/dialogs/war/sample-wizardaction In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19672/war/sample-wizardaction Added Files: wizard-error.jsp wizard-signupconfirm.jsp wizard-signupdetails.jsp wizard-signupstart.jsp wizard-userpage.jsp Log Message: --- NEW FILE: wizard-error.jsp --- <!-- Struts Dialogs Example Author: Michael Jouravlev, 2004-2005 --> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <html:html> <head> <title>Login error</title> </head> <body> <h2>Login error</h2> </body> </html:html> --- NEW FILE: wizard-signupconfirm.jsp --- <!-- Easy Wizard example Author: Michael Jouravlev, 2004-2005 --> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <html:html locale="true"> <head> <title>New user signup: Confirmation</title> </head> <body> <!-- Standard Struts error handling --> <logic:messagesPresent> <ul> <html:messages id="error"> <li><bean:write name="error"/></li> </html:messages> </ul> </logic:messagesPresent> <!-- Show item and allow to modify it using a FORM --> <html:form action="/wizardaction.do"> <table border="1" width="400"> <tr> <td colspan="2" align="left" bgcolor="99FF66"> New user signup: Confirmation</td> </tr> <tr> <td align="left" bgcolor="99FF66"> Chosen user name:</td> <td> <bean:write name="wizardform" property="signupWizard.stepSignup.name"/></td> </tr> <tr> <td align="left" bgcolor="99FF66"> Security question:</td> <td> <bean:write name="wizardform" property="signupWizard.stepDetails.securityQuestion"/></td> </tr> <tr> <td align="left" bgcolor="99FF66"> Answer:</td> <td> <bean:write name="wizardform" property="signupWizard.stepDetails.securityAnswer"/></td> </tr> <tr> <td colspan="2" align="right" bgcolor="99FF66"> <INPUT type="submit" size="10" name="DIALOG-EVENT-CANCEL" value="Cancel"> <INPUT type="submit" size="10" name="DIALOG-EVENT-BACK" value="Back"> <INPUT type="submit" size="10" name="DIALOG-EVENT-NEXT" value="Done"> </td> </tr> </table> </html:form> </body> </html:html> --- NEW FILE: wizard-signupdetails.jsp --- <!-- Easy Wizard example Author: Michael Jouravlev, 2004-2005 --> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <html:html locale="true"> <head> <title>New user signup: Security question</title> </head> <body> <!-- Standard Struts error handling --> <logic:messagesPresent> <ul> <html:messages id="error"> <li><bean:write name="error"/></li> </html:messages> </ul> </logic:messagesPresent> <html:form action="/wizardaction.do"> <table border="1" width="400"> <tr> <td colspan="2" align="left" bgcolor="99FF66"> New user signup: Security question</td> </tr> <tr> <td align="left" bgcolor="99FF66"> Question:</td> <td> <html:select name="wizardform" property="signupWizard.stepDetails.securityAnswerId" > <html:options collection="simple-signup-questions" property="value" labelProperty="label" /> </html:select> </td> </tr> <tr> <td align="left" bgcolor="99FF66"> Your answer:</td> <td><html:text name="wizardform" property="signupWizard.stepDetails.securityAnswer" size="20" maxlength="40" tabindex="1"/> </td> </tr> <tr> <td colspan="2" align="right" bgcolor="99FF66"> <INPUT type="submit" size="10" name="DIALOG-EVENT-CANCEL" value="Cancel"> <INPUT type="submit" size="10" name="DIALOG-EVENT-BACK" value="Back"> <INPUT type="submit" size="10" name="DIALOG-EVENT-NEXT" value="Next"> </td> </tr> </table> </html:form> </body> </html:html> --- NEW FILE: wizard-signupstart.jsp --- <!-- Easy Wizard example Author: Michael Jouravlev, 2004-2005 --> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <html:html> <head> <title>New user signup: Identification</title> </head> <body> <!-- Standard Struts error handling --> <logic:messagesPresent> <ul> <html:messages id="error"> <li><bean:write name="error"/></li> </html:messages> </ul> </logic:messagesPresent> <html:form action="/wizardaction.do"> <table border="1" width="400"> <tr> <td colspan="2" align="left" bgcolor="99FF66"> New user signup: Identification</td> </tr> <tr> <td align="left" bgcolor="99FF66"> User name:</td> <td> <html:text name="wizardform" property="signupWizard.stepSignup.name" size="15" tabindex="1"/></td> </tr> <tr> <td align="left" bgcolor="99FF66"> Password:</td> <td> <html:text name="wizardform" property="signupWizard.stepSignup.password" size="15" tabindex="1"/></td> </tr> <tr> <td align="left" bgcolor="99FF66"> Retype password:</td> <td> <html:text name="wizardform" property="signupWizard.stepSignup.confirmPassword" size="15" tabindex="1"/></td> </tr> <tr> <td align="left" bgcolor="99FF66"> Security question:</td> <td><html:checkbox name="wizardform" property="signupWizard.stepSignup.personalize"/></td> </tr> <tr> <td colspan="2" align="right" bgcolor="99FF66"> <INPUT type="submit" size="10" name="DIALOG-EVENT-CANCEL" value="Cancel"> <INPUT type="submit" size="10" name="DIALOG-EVENT-NEXT" value="Next"> </td> </tr> </table> </html:form> </body> </html:html> --- NEW FILE: wizard-userpage.jsp --- <!-- Easy Wizard example Author: Michael Jouravlev, 2004-2005 --> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <% if (session.getAttribute("login.username") == null) { response.sendRedirect("wizarderroraction.do"); } %> <html:html locale="true"> <head> <title>User home page</title> </head> <body> <!-- Show boilerplate user page --> <table border="1" width="400"> <tr> <td align="left" bgcolor="#FFCC66">Welcome, <%= session.getAttribute("login.username") %>!</td> </tr> <tr> <td align="left" bgcolor="#FFCC66"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</td> </tr> </table> <p>Use Back browser button to return to previous page.</p> </body> </html:html> |