struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: I am not able to call a method in the Action Class
Date Tue, 10 Sep 2002 09:10:04 GMT
Hi Sriram,

What error message are you getting?

You say you are calling the method from the onChange event, so I presume in
the onChange you submit the form ,and then in a method of your action try to
call this other method that doesnt work, OR is this method the one that is
supposed to be invoked on submit (ie: one of your dispatch action 'execute'
methods). In this case you need to ensure that the "method" parameter (the
actual name of this parameter is defined in your struts-config.xml) is set
correctly to the name of the method you are trying to call (by appending it
to the action url or having it in a hidden form field), and that the
signature of your method is the same as that of the execute method.

-Andrew

-----Original Message-----
From: Sriram R [mailto:sriramr@sasken.com]
Sent: Tuesday, September 10, 2002 16:42
To: struts-user@jakarta.apache.org
Subject: I am not able to call a method in the Action Class


Hi,

I am not able to call a specific method in the Action class which extends
DispatchAction

I am geeting this problem only if i try to call the action class method
using onChnage event of a dropdown.
Even if i try invoking the the correct method the form values are not
getting passed on to the action class.

Any pointers as to how to do it.

Regards
Sriram R


Regards
Sriram






--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message