Help Re: cancel and session-scope form

2002-09-29 Thread Angie Lin
Any ideas are appreciated. Is there anyway to keep my session-scoped form from being populated by a click of an html:cancel button? Is there any hook in the underlying Action that I can intercept prior to the ActionForm auto-population? Thanks, Angie Angie Lin wrote: Hi there, How can

Re: Help Re: cancel and session-scope form

2002-09-29 Thread Eddie Bush
Just quickly thinking it over ... When your form submits, you're going to hit an action. Your action is going to look and see what the user told you they wanted to do and act appropriately. Now, that doesn't help you keep the form from being populated, but you can certainly keep from

Re: Help Re: cancel and session-scope form

2002-09-29 Thread Eddie Bush
Actually ... I've never done this before, but ... Why couldn't you invoke a javascript method on your Cancel button that invoked the forms reset method? That might be the easiest solution ... Eddie Bush wrote: Just quickly thinking it over ... When your form submits, you're going to hit

Re: Help Re: cancel and session-scope form

2002-09-29 Thread Angie Lin
Thanks for the tip, but I'm trying to avoid javascript as much as possible. It looks like I'll have to go ahead and manage my session form manually, and use a request-scoped form so that the auto-population doesn't blow away the properties. Thanks again, Angie Eddie Bush wrote: Actually

RE: Help Re: cancel and session-scope form

2002-09-29 Thread Tal Lev-Ami
: Sun, September 29, 2002 10:26 PM To: Struts Users Mailing List Subject: Re: Help Re: cancel and session-scope form Thanks for the tip, but I'm trying to avoid javascript as much as possible. It looks like I'll have to go ahead and manage my session form manually, and use a request-scoped form