struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narayanan, Sunitha" <Sunitha.Naraya...@nike.com>
Subject RE: Problem with the forward attribute in action
Date Wed, 04 Feb 2004 18:11:35 GMT
To provide more info on this.

On the Struts user guide page, http://jakarta.apache.org/struts/userGuide/building_controller.html

If you see section, 4.9 Using ActionMappings for Pages

It has this sample code - 

<action path="/view" forward="/view.jsp"/> 

I tried having the forward goto the jsp page as well a tile. Both of them did not work.

If any other developer has seen this work, or if someone from the contributors has seen this
work.
Please let me know.

Thanks,
Sunitha

-----Original Message-----
From: Matt Raible [mailto:lists@raibledesigns.com]
Sent: Tuesday, February 03, 2004 9:37 PM
To: Struts Users Mailing List
Subject: Re: Problem with the forward attribute in action


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


Mime
View raw message