Hi Dilip Ladhani-2, Thanks for you reply, I know your solution works on struts 1, but I'm using struts 2. How can I call validate method in my Action class explictly? Thanks.
Regards, Boon Leng Dilip Ladhani-2 wrote: > > Well, here's what I do. > 1) Have a private method (prepare??) in your action class which is > responsible for populating all your Select boxes. This method is > called from your main Action method. > > 2) Call the validate method from your Action class explictly, instead > of setting "validate=true" in the struts-config file > > 3) After calling the validate, check the errors.size, if you have > errors, just call the private method (prepare or whatever you call it > and forward to your input page. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Reload-combo-option-if-validation-fail.-tf4297263.html#a12247213 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]