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:37 UTC

cvs commit: jakarta-velocity-tools/examples/struts/examples/struts_app7 form.vm

marino      2004/01/29 11:38:37

  Added:       examples/struts/examples/struts_app7 form.vm
  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_app7/form.vm
  
  Index: form.vm
  ===================================================================
  <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>
  <form action='$slink.setAction("secureSubmit")' >
  This posts to a secure action.
  <br>
     <input type="text" name="propA" value="" size="8" maxlength="8" />
  <br>
     <input type="text" name="propB" value="" size="8" maxlength="8" />
  <br>
  <input type="submit"/>
  </form>
  <form action='$slink.setAction("nonsecureSubmit")' >
  This posts to a non-secure action.
  <br>
     <input type="text" name="propA" value="" size="8" maxlength="8" />
  <br>
     <input type="text" name="propB" value="" size="8" maxlength="8" />
  <br>
  <input type="submit"/>
  </form>
  </body>
  </html>
  
  
  

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