sorry, it was a typo. I have a rigt method 'calc' itself.


From: "Wendy Smoak" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: "Struts Users Mailing List" <user@struts.apache.org>
Subject: Re: form-property value set in dispatch action is lost
Date: Tue, 19 Sep 2006 13:23:36 -0700

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", "calc");
                }

                public ActionForward calculate(ActionMapping mapping,

This doesn't match. getKeyMethodMap should map property keys to method names.

http://struts.apache.org/1.x/struts-extras/apidocs/org/apache/struts/actions/LookupDispatchAction.html

Do you have another method called 'calc'?

It's not clear that the 'calculate' method is even executing.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Add fun gadgets and colorful themes to express yourself on Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://www.get.live.com/spaces/features


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to