Thanks for the prompt reply Maurizio.
I also thought the same but I checked my UserDelegates class and got
add(UserDTO) declared there. In this delegate I am getting service class
object trough a ServiceLocator and it seems the object is not getting
created for UserService class.

Please find UserRegistrationAction.java in the attachment which you have
asked for. I am amazed why the log is not being printed which I have put
inside execute() method.

Thanks!
--
Ashish

On Mon, Dec 6, 2010 at 6:55 AM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:

> It looks like there is something wrong in your UserDelegate class.
> Have you declared an add(UserDTO) method inside it?
> Could you post UserRegistrationAction code?
>
>
> 2010/12/6 ashish chawre <ashish.chawr...@gmail.com>:
> > Hi list,
> >
> > I am trying to call execute method of my UserRegistrationAction class but
> it
> > doesn't call the method.
> > Here is the code of my struts.xml :
> >
> > <struts>
> >    <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
> >    <constant name="struts.devMode" value="false"/>
> >
> >    <package name="company" extends="tiles-default">
> >        <action name="d_*" class="com.company.action.{1}" method="input">
> >            <result type="tiles">{1}</result>
> >            <result name="input" type="tiles">{1}</result>
> >        </action>
> >        <action name="LoginAction" class="com.company.action.LoginAction"
> > method="execute">
> >            <result type="redirect">d_UserRegistrationAction</result>
> >            <result name="input" type="tiles">LoginAction</result>
> >        </action>
> >        <action name="UserRegistrationAction"
> > class="com.company.action.UserRegistrationAction" method="execute">
> >            <result type="tiles">d_UserListAction</result>
> >            <result name="input" type="tiles">d_UserListAction</result>
> >        </action>
> >    </package>
> > </struts>
> >
> > In above code when I am calling execute for LoginAction action its
> working
> > fine but when I do the same for UserRegistrationAction, the execute
> method
> > of this class is not getting called instead its giving error
> > *java.lang.NoSuchMethodError:
> > com.company.delegate.UserDelegate.add(Lcom/blisstech/dto/UserDTO;)J
> >
> com.company.action.UserRegistrationAction.execute(UserRegistrationAction.java:175)
> > *
> >
> > Any help will be much appreciated.
> >
> > Thanks in advance.
> >
> > -- Ashish
> >
>
>
>
> --
> Maurizio Cucchiara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to