From: Thomas J. <fa...@ap...> - 2002-10-29 20:48:29
|
Update of /var/lib/cvs/bWF2/web In directory apollo:/tmp/cvs-serv29771 Modified Files: signup.jsp Log Message: signup stuff. Index: signup.jsp =================================================================== RCS file: /var/lib/cvs/bWF2/web/signup.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- signup.jsp 26 Oct 2002 01:07:20 -0000 1.1 +++ signup.jsp 29 Oct 2002 20:48:20 -0000 1.2 @@ -1,35 +1,58 @@ <%@page contentType="text/html"%> <%@taglib uri="/i18n" prefix="i18n"%> <i18n:bundle baseName="i18nResources" scope="page"/> - -<% String err_msg = (String)request.getAttribute("err_msg"); - String username = request.getParameter("username"); - %> -<html> -<head><title><i18n:message key="bchat.signup.PAGE_TITLE"/></title></head> -<body> -<center> -<% if(err_msg != null && !err_msg.trim().equals("")) { %> - <font color="red"> - <%=err_msg%><br> - </font> -<% } %> -<br><br> -<i18n:message key="bchat.signup.EXPLANATION"/><br><br> -<form action="CommunitySignup" method="post"> -<table border="0"> - <tr><td align="right"><i18n:message key="bchat.signup.DESIRED_USERNAME"/>:</td> - <td><input type="text" name="username" size="45" value="<%= username == null ? "" : username%>"></td> - </tr><tr> - <td align="right"><i18n:message key="bchat.signup.VALID_EMAIL"/>:</td> - <td><input type="text" name="email" size="45"></td> - </tr><tr> - <td colspan="2" align="right"> - <input type="submit" name="submit" value='<i18n:message key="bchat.signup.SUBMIT"/>'> - </td> - </tr> -</table> -</form> -</center> -</body> -</html> +<% if(session.getAttribute("ok_done")!=null) { + session.invalidate(); + %> + <html> + <head><title><i18n:message key="bchat.signup.PAGE_TITLE"/></title></head> + <body> + <center> + <br><br> + <i18n:message key="bchat.signup.COMPLETED"/> + <br><br> + <a href="index.jsp"><i18n:message key="bchat.signup.TO_LOGIN"/></a> + </center> + </body> + </html> + <% + } else { + String err_msg = (String)request.getAttribute("err_msg"); + String username = request.getParameter("username"); + String email = request.getParameter("email"); + String email2 = request.getParameter("email2"); + %> + <html> + <head><title><i18n:message key="bchat.signup.PAGE_TITLE"/></title></head> + <body> + <center> + <% if(err_msg != null && !err_msg.trim().equals("")) { %> + <font color="red"> + <%=err_msg%><br> + </font> + <% } %> + <br><br> + <i18n:message key="bchat.signup.EXPLANATION"/><br><br> + <form action="CommunitySignup" method="post"> + <table border="0"> + <tr><td align="right"><i18n:message key="bchat.signup.DESIRED_USERNAME"/>:</td> + <td><input type="text" name="username" size="45" value="<%= username == null ? "" : username%>"></td> + </tr><tr> + <td align="right"><i18n:message key="bchat.signup.VALID_EMAIL"/>:</td> + <td><input type="text" name="email" size="45" value="<%= email == null ? "" : email%>"></td> + </tr><tr> + <td align="right"><i18n:message key="bchat.signup.VALID_EMAIL_AGAIN"/>:</td> + <td><input type="text" name="email2" size="45" value="<%= email2 == null ? "" : email2%>"></td> + </tr><tr> + <td colspan="2" align="right"> + <input type="submit" name="submit" value='<i18n:message key="bchat.signup.SUBMIT"/>'> + </td> + </tr> + </table> + </form> + </center> + </body> + </html> + <% + } +%> |