You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ma...@apache.org on 2004/01/29 20:38:09 UTC

cvs commit: jakarta-velocity-tools/examples/struts/examples/struts_app6 form.jsp

marino      2004/01/29 11:38:09

  Added:       examples/struts/examples/struts_app6 form.jsp
  Log:
  two new example applications that showcase SSL Ext for Struts and the SecureLinkTool
  
  Revision  Changes    Path
  1.1                  jakarta-velocity-tools/examples/struts/examples/struts_app6/form.jsp
  
  Index: form.jsp
  ===================================================================
  <%@page import="test.ssl.*" %>
  <%@ taglib uri="/WEB-INF/sslext.tld" prefix="sslext"%>
  <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
  <html>
  <head>
  </head>
  
  <body>
  <font size="+4"><center><%=request.getRequestURI()%></center></font>
  <br>
  We are on the form page.  View the page source to see the difference in the action attribute values between the two forms.
  <br>
  <br>
  <sslext:form action="/secureSubmit_jsp" >
  This posts to a secure action.
  <br>
     <html:text property="propA" value="" size="8" maxlength="8" />
  <br>
     <html:text property="propB" value="" size="8" maxlength="8" />
  <br>
  <html:submit/>
  </sslext:form>
  <sslext:form action="/nonsecureSubmit_jsp" >
  This posts to a non-secure action.
  <br>
     <html:text property="propA" value="" size="8" maxlength="8" />
  <br>
     <html:text property="propB" value="" size="8" maxlength="8" />
  <br>
  <html:submit/>
  </sslext:form>
  </body>
  </html>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org