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
t; Subject: RE: form-property value set in dispatch action is lost Date: Tue, 19 Sep 2006 16:05:32 -0400 Do you have to issue code after the call here: frm.set("typeName", "x"); like: placeFormBackInScope( mapping, frm, request ); which would place the updated form ba

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

2006-09-19 Thread Givler, Eric
Do you have to issue code after the call here: frm.set("typeName", "x"); like: placeFormBackInScope( mapping, frm, request ); which would place the updated form back in scope: public void placeFormInScope(ActionMapping mapping, ActionForm form,

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 In struts config have a Dynavalidator