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/28 02:56:15 UTC
cvs commit: jakarta-velocity-tools/examples/struts/examples/struts_app5 validator-demo.jsp
marino 2004/01/27 17:56:15
Added: examples/struts/examples/struts_app5 validator-demo.jsp
Log:
a new example app to show off the ValidatorTool for Struts 1.1
Revision Changes Path
1.1 jakarta-velocity-tools/examples/struts/examples/struts_app5/validator-demo.jsp
Index: validator-demo.jsp
===================================================================
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<title>Struts App5: Struts ValidatorTool Demo (JSP Version)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h2>Struts App5: Struts ValidatorTool Demo (JSP Version)</h2>
<p>A demonstration of the Velocity ValidatorTool provided for Struts support.</p>
<html:errors/>
<html:form type="emailForm" action="do_submit_jsp" method="post" onsubmit="return validateEmailForm(this)">
<html:text property="email"/>
<html:submit/>
</html:form>
</body>
<!-- if this line is commented out, the form will be validated server-side ... go ahead, try it :) -->
<html:javascript formName="emailForm"/>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org