You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Narayanan, Sunitha" <Su...@nike.com> on 2004/02/04 02:33:53 UTC
Problem with the forward attribute in action
Hi,
I downloaded today's build of Struts 1.2 (Feb 3).
While defining an action mapping in the struts-config.xml
<action path="/login" forward="site.login.page" />
Gives me an error No action instance for path /login.
[java] ERROR (RequestProcessor.java:327) - No action instance for path /lo
gin could be created
But when I specify it like this - <action path="/login" type="org.apache.struts.actions.ForwardAction" parameter="site.login.page" />
It works fine. The method of only specifying forward attribute has worked in the past with struts 1.1 and also is shown as an example in the struts documentation.
Can u let me know if something has changed?
Thanks,
Sunitha
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Problem with the forward attribute in action
Posted by Matt Raible <li...@raibledesigns.com>.
I didn't even know it was possible to do it the first way you show
(I've always done it using #2). That would sure simplify things if #1
is possible - I want to know the answer too!
Matt
On Feb 3, 2004, at 6:33 PM, Narayanan, Sunitha wrote:
> Hi,
>
> I downloaded today's build of Struts 1.2 (Feb 3).
>
> While defining an action mapping in the struts-config.xml
>
> <action path="/login" forward="site.login.page" />
>
> Gives me an error No action instance for path /login.
>
> [java] ERROR (RequestProcessor.java:327) - No action instance
> for path /lo
> gin could be created
>
> But when I specify it like this - <action path="/login"
> type="org.apache.struts.actions.ForwardAction"
> parameter="site.login.page" />
>
> It works fine. The method of only specifying forward attribute has
> worked in the past with struts 1.1 and also is shown as an example in
> the struts documentation.
> Can u let me know if something has changed?
>
> Thanks,
> Sunitha
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org