T
timmac
I'm hoping someone can help me with form validation using struts and
the commons validator. I have everything set up, and as far as I can
tell, it's identical to examples I've seen elsewhere. Client-side
(javascript) validation works fine, but when I attempt server-side
validation, it seems to perform no validation at all.
Any ideas?
The relevant portion of my struts-config.xml is:
<form-beans>
<form-bean name="registerFormBean"
type="com.pixel.pool.RegisterFormBean" />
</form-beans>
......
<action path="/register" forward="/register.jsp" />
<action path="/register-submit"
type="com.pixel.pool.Register"
name="registerFormBean"
scope="request"
validate="true"
input="input">
<forward name="input"
path="/register.do" />
<forward name="success"
path="/thankYou.jsp" />
</action>
I have the RegisterFormBean class extending ValidatorForm as well.
Anyone know what I'm missing?
Thanks in advance,
Tim MacDonald
the commons validator. I have everything set up, and as far as I can
tell, it's identical to examples I've seen elsewhere. Client-side
(javascript) validation works fine, but when I attempt server-side
validation, it seems to perform no validation at all.
Any ideas?
The relevant portion of my struts-config.xml is:
<form-beans>
<form-bean name="registerFormBean"
type="com.pixel.pool.RegisterFormBean" />
</form-beans>
......
<action path="/register" forward="/register.jsp" />
<action path="/register-submit"
type="com.pixel.pool.Register"
name="registerFormBean"
scope="request"
validate="true"
input="input">
<forward name="input"
path="/register.do" />
<forward name="success"
path="/thankYou.jsp" />
</action>
I have the RegisterFormBean class extending ValidatorForm as well.
Anyone know what I'm missing?
Thanks in advance,
Tim MacDonald