You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tak Fujimoto <t-...@beingcorp.co.jp> on 2003/06/04 12:10:35 UTC
Using multiple validators on single JSP page
I apologize if this question have already answered previously
at http://www.mail-archive.com/struts-user@jakarta.apache.org/
I haven't looked through because the server is currently under maintenance.
I am trying to use multiple validators with forms on single JSP page.
When I comment one of two forms on a JSP page, it works.
But, when I try to use both of them at a single page, it doesn't work.
With both forms, FORM2 works. (see the source below)
But, when I submit on FORM1,
validator is not functioning and it seems an empty request is sent to Action class.
I receive an error from Action class.
Any thoughts will be greatly appreciated.
Thank you in advance.
[source]
<%-- ============= FORM1 ====================== --%>
<html:javascript formName="mainForm" />
<html:form action="/main" onsubmit="return validateMainForm(this);">
<table border="1" cellpadding="1" width="700" >
<tr>
<td><html:text property="formCustomerNum" size="10" maxlength="7" value="" /></td>
<td><html:text property="formTelsupport" size="60" value="" /></td>
</tr>
</table>
<html:submit property="submit" value="regist" />
<html:reset value="reset"/>
</html:form>
<html:errors/>
<%-- ============= FORM2 ====================== --%>
<html:javascript formName="reportForm" />
<html:form action="/report" onsubmit="return validateReportForm(this);">
<html:textarea property="formReport" rows="8" cols="80" value="" />
<br>
<html:submit property="submit" value="regist"/>
<html:reset value="reset"/>
</html:form>
<html:errors/>
[setup]
jakarta-struts-1.1-b3
jakarta-tomcat-4.0.6
torque-3.0
Red Hat Linux release 7.1 (Seawolf)
apache_1.3.26
postgresql-7.2.1
pg73jdbc3.jar
mod_jk-1.3-noeapi.so
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org