Do not use automatic validation. Set validate="false" and call form.validate() in your execute method. Then you should determine if you need to invoke your database again and reset the form with whatever fields you want. -- Paul
Medicherla Lakshmi <[EMAIL PROTECTED]> wrote: Hi all, I have a problem of maintaining the state of the jsp which is entered with some values. In my jsp, i have some text boxes and select boxes. I enter all the values and submit it, but if the name of any of the text boxes exist in the database already, it fires an alert and refreshes the page since am forwarding to that jsp again from the action along with the error message. But, my requirement is to maintain the values in the jsp though the alert should fire. Is there any way to maintain the state in the jsp. Am trying for this from many days. Any idea will be of great help. Thanks in advance. --------------------------------- Yahoo! India Answers: Share what you know. Learn something new Click here Catch all the FIFA World Cup 2006 action on Yahoo! India Click here --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.