Hi Merrill,
Appreciate your response. Just have few more questions to confirm--
1. could you elaborate how do I specify client side or server side validation in struts ? is it a simple flag ? If I do client side struts validation, do I need to write javascript separately by myself or does struts automatically generate it (assuming I am using struts 1 still) ?
2. regardless of client or server side struts validation, as long as it is struts validation, the validation only happens after you click the submit button, correct (the difference is for client it may intercept the form before sending to server, and server side validation is done after it is sent to server) ?
3. You said if the form extends ActionForm instead of ValidationForm, then the validation-rules.xml and validation.xml are useless, and the only validation logic should be in the form class ?
4. I notice that in some form, after I filled in some text in a text field and moved to the next field, sometimes it immediately pops up an alert telling me I entered wrong format for last text field. At that point I hvaen't clicked submit button yet. For such validation, can I say this is not struts validation, it may be
java script validation, correct ?
Thanks.