Exception in ActionForm.reset()

2004-02-09 Thread Franck Lefebure
Hello, How can I handle exception in reset(mapping, request) method (I would like in this case to forward to a particular mapping) Thanks -- Franck Lefebure

Re: HttpServletResponse in ActionForm.reset()

2003-08-21 Thread Jing Zhou
What do you want to do with HttpServletResponse in ActionForm.reset()? The reset() method is intended to reset necessary properties in form beans in case they are not posted from browsers. If anything gets wrong in the method, you could throw IllegalArgumentException or IllegalStataException

HttpServletResponse in ActionForm.reset()

2003-08-21 Thread Jung, Eric (Contractor)
Hi everyone, I posted this question a couple days ago, but no one took a bite. Any suggestions? I'm trying to get the HttpServletResponse from within the ActionForm.reset() method. Any ideas? Thank you in advance for any help... Sincerely, Eric H. Jung Software Engineer Russell/M

How to get HttpServletResponse from ActionForm.reset()

2003-08-20 Thread Jung, Eric (Contractor)
Hi everyone, I've searched the mailing list archives, Google Groups, the JavaDoc, and my 3 Struts books, but can't find an answer to this question. Hoping someone on the list can help me... Is there a way to get the HttpServletResponse from ActionForm.reset()? Here's the method

Re: actionForm.reset() question

2003-01-28 Thread Craig R. McClanahan
On 28 Jan 2003, Jeremy Cavagnolo wrote: > Date: 28 Jan 2003 12:04:53 -0800 > From: Jeremy Cavagnolo <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: actionForm.reset() question > > Does ActionServ

actionForm.reset() question

2003-01-28 Thread Jeremy Cavagnolo
Does ActionServlet call the reset() method after instantiating an ActionForm, but before populating it with the http request parameters? Can anyone point me to a good explanation about how and when ActionServlets create ActionForms? Thanks! -Jeremy P.S. As a newbie, I am really enjoying the "O

RE: getting MessageResources within ActionForm.reset()

2002-09-22 Thread Taylor, Jason
r everyone, but it seems better than other options... -JT -Original Message- From: Bryan Hilterbrand [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 21, 2002 11:29 AM To: Struts Users Mailing List Subject: Re: getting MessageResources within ActionForm.reset() Why don

RE: getting MessageResources within ActionForm.reset()

2002-09-21 Thread Taylor, Jason
not use an ActionForm. Bottom line, there should be a way to get Resources in ActionForm.reset()-- there's no good reason I can see why you'd need system properties in the Action class but not the ActionForm class. The reset method receives the request object, so you don't have the pr

Re: getting MessageResources within ActionForm.reset()

2002-09-21 Thread Bryan Hilterbrand
Why don't you do your initialization in the action method? Bryan - Original Message - From: "Taylor, Jason" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 12:06 PM Subject: getting MessageResources within Act

getting MessageResources within ActionForm.reset()

2002-09-21 Thread Taylor, Jason
Since the ActionServlet.getResources() method is now deprecated, you need a request and an Action object to get Resources. That's fine so long as you're operating within the Action class, but if you're in the ActionForm object and you want to get Resources, you can't because Action.getResources(H

RE: ActionForm.reset() method

2001-08-14 Thread Mike Dewhirst
so if I have old data in there, it will be overwritten, plus validate() will be invoked afterwards if I have validate=true in the config? -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: 14 August 2001 17:02 To: [EMAIL PROTECTED] Subject: Re: ActionForm.reset

Re: ActionForm.reset() method

2001-08-14 Thread Gregor Rayman
"Mike Dewhirst" <[EMAIL PROTECTED]> > is automatically called when? When the form is first created by the > Controller? No, it is called always before the controller populates it from the request. -- gR

ActionForm.reset() method

2001-08-14 Thread Mike Dewhirst
is automatically called when? When the form is first created by the Controller? =** If you are not the intended recipient, employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that an

Re: ActionForm.reset() not called when form tag creates bean

2001-05-10 Thread John Raley
; - Original Message - > From: "John Raley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 09, 2001 9:52 PM > Subject: ActionForm.reset() not called when form tag creates bean > > > When the form tag creates its form bean it

Re: ActionForm.reset() not called when form tag creates bean

2001-05-10 Thread Tharwat Abdul-Malik
How about not clearing the values in your reset() method (or only clear values upon some special condition). - Original Message - From: "John Raley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 9:52 PM Subject: ActionForm.reset() no

ActionForm.reset() not called when form tag creates bean

2001-05-09 Thread John Raley
When the form tag creates its form bean it doesn't invoke reset() on the form. This (or similar) behavior would be really useful to me - I'm populating the form with runtime-computed default values. Right now I'm considering hacking in a create and a call to reset() on the page (or in a special-

RE: ActionForm.reset()

2001-02-22 Thread Christian Billen
D] > Subject: Re: ActionForm.reset() > > > Christian Billen wrote: > > > Hi list, > > > > Is there a way to prevent the reset() method from being called on the > > ActionForm when the validate option in struts-config for that > mapping is set > > to fa

Re: ActionForm.reset()

2001-02-21 Thread Craig R. McClanahan
Christian Billen wrote: > Hi list, > > Is there a way to prevent the reset() method from being called on the > ActionForm when the validate option in struts-config for that mapping is set > to false? > Doing this would break the recommended approach for dealing with checkboxes, which rely on res

ActionForm.reset()

2001-02-21 Thread Christian Billen
Hi list, Is there a way to prevent the reset() method from being called on the ActionForm when the validate option in struts-config for that mapping is set to false? My problem is that I have an Action to prepare the data for a jsp page and another Action to process the data from that jsp. Both