Struts Validator not validating on the server-side

I'm using the dynamaic validator action form to validate my input fields. The client-side validation works great. The server-side validation does not seem to work. I would disable the javascript on the browser to test the server-side validation. The message bean on the jsp will never display any messages. I'm using Struts 1.1-b3. Any help with the problem would be greatly appreciated. Snipplets of my code below:

I would disable the javascript on the browser to test the server-side validation. The message bean on the jsp will never display any messages. I'm using Struts 1.1-b3. Any help with the problem would be greatly appreciated. Snipplets of my code below:

I have'nt used <html:javascript formName="someform" /> in my jsp page.

we should use either

<logic:messagesPresent>

or

<html:errors/> in the jsp page, for printing the error messages .

If we use <logic:messagesPresent>, it does'nt mean that we are using client side validation.It is server side validation only.

I think you are using validate="true" atrribute in action tag in struts-config.xml, first of all to invoke the validate method.

The validate() method will return Object of ActionErrors class if any validation errors are present. The <logic:messagesPresent> or <html:errors/> will Check this ActionErrors for printing the error messages.

If we are not using the <logic:messagesPresent> or <html:errors/> how does the jsp read the ActionErrors Object returned by the validate method.

I try to get a simple form validated by the validator but I cannot get a checkbox validated. While the textfield is checked correctly the checkbox is ignored by the validator. What surprises me is that if I enable JavaScript the error is reported correctly by a pop-up.

I searched the internet for a while but could not find out if this is a known bug or how to get it to work.

here you must use "org.apache.struts.validator.DynaValidatorActionForm" instead of "org.apache.struts.action.DynaValidatorActionForm".Since "DynaValidatorActionForm" is in "org.apache.struts.validator" package, not in "org.apache.struts.action" package.