[securityfilter-cvs] securityfilter/web/example loginForm.jsp, 1.2, 1.3
Brought to you by:
chris_schultz,
maxcooper
|
From: Christopher S. <chr...@us...> - 2007-11-02 16:31:35
|
Update of /cvsroot/securityfilter/securityfilter/web/example In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24774/web/example Modified Files: loginForm.jsp Log Message: Added post-login forward capability (original patch posted to the sourceforge.net forums). Index: loginForm.jsp =================================================================== RCS file: /cvsroot/securityfilter/securityfilter/web/example/loginForm.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** loginForm.jsp 15 Feb 2006 08:34:15 -0000 1.2 --- loginForm.jsp 2 Nov 2007 16:31:24 -0000 1.3 *************** *** 1,8 **** <%@ page session="false" %> <%@ page import="org.securityfilter.example.Constants"%> <html> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title><%=Constants.LOGIN_TITLE%></title> </head> --- 1,9 ---- <%@ page session="false" %> <%@ page import="org.securityfilter.example.Constants"%> + <%@ page import="org.securityfilter.authenticator.FormAuthenticator"%> <html> <head> ! <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title><%=Constants.LOGIN_TITLE%></title> </head> *************** *** 30,36 **** ><p> <input type="Submit"> </form> </body> ! </html> \ No newline at end of file --- 31,57 ---- ><p> + <p> + You may set these post-login forward options if you'd like:<br /> + URL: <input type="text" name="forward" /><br /> + + Method: + <input id="<%= FormAuthenticator.DEFAULT_FORWARD_MODE_PARAMETER_NAME %>-redirect" type="radio" name="<%= FormAuthenticator.DEFAULT_FORWARD_MODE_PARAMETER_NAME %>" value="redirect" /> + <label for="<%= FormAuthenticator.DEFAULT_FORWARD_MODE_PARAMETER_NAME %>-redirect">Redirect</label> + + <input id="<%= FormAuthenticator.DEFAULT_FORWARD_MODE_PARAMETER_NAME %>-forward" type="radio" name="<%= FormAuthenticator.DEFAULT_FORWARD_MODE_PARAMETER_NAME %>" value="forward" /> + <label for="<%= FormAuthenticator.DEFAULT_FORWARD_MODE_PARAMETER_NAME %>-forward">Forward</label> + <br /> + + Include parameters: + <input id="<%= FormAuthenticator.DEFAULT_FORWARD_PARAMETERS_PARAMETER_NAME %>-yes" type="radio" name="<%= FormAuthenticator.DEFAULT_FORWARD_PARAMETERS_PARAMETER_NAME %>" value="true" /> + <label for="<%= FormAuthenticator.DEFAULT_FORWARD_PARAMETERS_PARAMETER_NAME %>-yes">Yes</label> + + <input id="<%= FormAuthenticator.DEFAULT_FORWARD_PARAMETERS_PARAMETER_NAME %>-no" type="radio" name="<%= FormAuthenticator.DEFAULT_FORWARD_PARAMETERS_PARAMETER_NAME %>" value="false" /> + <label for="<%= FormAuthenticator.DEFAULT_FORWARD_PARAMETERS_PARAMETER_NAME %>-no">No</label> + </p> + <input type="Submit"> </form> </body> ! </html> |