It doesn't matter what kind of form you use. Just turn automatic validation 
off. That's the problem. You will no hook to reset any form values if Struts 
does everything for you. Also, if you don't have a form, then you can't do this 
at all. You need something to actually modify.

Medicherla Lakshmi <[EMAIL PROTECTED]> wrote: Yeah, thatz ok, but am using a 
dynaactionform for this and there is  no seperate form.  Moreover, am 
retrieving the values using request.getParameter("sss").  whatever the 
parameter may be since i have select boxes also in my jsp.

Paul Benedict 
 wrote:  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 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.

     
---------------------------------
 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


                
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1ยข/min.

Reply via email to