Re: form-property value set in dispatch action is lost

2006-09-21 Thread fea jabi
thanks a lot that worked. I never understood what the "redirect" does until now. I know now when to make it true. Thanks a lot again. From: "Michael Jouravlev" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List&

Re: form-property value set in dispatch action is lost

2006-09-20 Thread Michael Jouravlev
You use the same form in both actions, and you chain them without a redirect, so the request parameters are applied to your form again when you forward to PrepareAction. Struts repopulates your form with request parameters, so if the parameter is mentioned in the request and it is emply, Struts w

Re: form-property value set in dispatch action is lost

2006-09-20 Thread fea jabi
Thanks for your responses. can someone help me with this please. Thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006 16:

Re: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
sorry, it was a typo. I have a rigt method 'calc' itself. From: "Wendy Smoak" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19

Re: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
sorry, it was a typo. I have a rigt method 'calc' itself. From: "Wendy Smoak" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: form-property value set in dispatch action is lost Date: Tue, 19

Re: form-property value set in dispatch action is lost

2006-09-19 Thread Wendy Smoak
On 9/19/06, fea jabi <[EMAIL PROTECTED]> wrote: public class DispatchAction extends LookupDispatchAction { That's confusing... Struts already has a DispatchAction. protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("btn.calc",

RE: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
frm ); } else if ( mapping.getScope().equalsIgnoreCase("SESSION")) { HttpSession session = request.getSession(); session.setAttribute( mapping.getName(), frm ); } } -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 3:44 PM To: user@s

RE: form-property value set in dispatch action is lost

2006-09-19 Thread Givler, Eric
HttpSession session = request.getSession(); session.setAttribute( mapping.getName(), frm ); } } -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 19, 2006 3:44 PM To: user@struts.apache.org Subject: form-property value set in dispatch action is lost In stru

RE: form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
I do have the dynamic="true" set too. .. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006 15:43:37 -0400 I

form-property value set in dispatch action is lost

2006-09-19 Thread fea jabi
In struts config have a Dynavalidator form-bean .. have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp in the config which are session scoped. redirect="false"/> redirect="false"/> In the jsp have a submit button whi