Re: Form reset()

2006-06-07 Thread vijay r
Suppose we have a page P1.jsp which has a corrosponding form bean, say, TestForm. If the scope of the bean is request, then whenever we access P1.jsp, the reset() method will be called. If the scope is session, reset() method will be called only for the first time, when the bean is actually loade

Re: Form reset()

2006-05-29 Thread Philihp Busby
ActionForm objects are reused. A new one may not necessarily be created every time a form is submitted... Struts will try and reuse one from a pool of ActionForm objects. If there's a free one, it calls reset() before populating it in the controller with form values and hands it to your action.

Re: grab form bean was Re: form reset

2004-10-07 Thread wiwit_tjahjana
7/2004 11:05 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject grab form bean was Re: form reset Hey guys, Thanks for the response on my first question. Turns out I'm an idiot and was pre-filling a form element vi

grab form bean was Re: form reset

2004-10-07 Thread roy-strutsuser
Hey guys, Thanks for the response on my first question. Turns out I'm an idiot and was pre-filling a form element via the value parameter of a tag. However this now leads to a second question. How do I grab the form bean and the fields? I'd like to print the value of a form field either on

grab form bean was Re: form reset

2004-10-07 Thread roy-strutsuser
Hey guys, Thanks for the response on my first question. Turns out I'm an idiot and was pre-filling a form element via the value parameter of a tag. However this now leads to a second question. How do I grab the form bean and the fields? I'd like to print the value of a form field either on

RE: form reset

2004-10-06 Thread Chris Bredesen
What is it doing or not doing that is giving you trouble? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 06, 2004 4:47 PM > To: [EMAIL PROTECTED] > Subject: form reset > > > Hi guys, > > I know this has been asked before... but nothi

Re: form reset

2004-10-06 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> > I know this has been asked before... but nothing seems to be working for me. > I have a ActionForm in which I reset all my fields to null. > Can someone please not only correct me on what I'm doing wrong but also explain why? > form.reset( mapping, request ); This one