Hi,

I am reposting on this site. Please let me know if this 
actionmapping will work.

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

Thanks,
Sunitha
-----Original Message-----
From: Narayanan, Sunitha [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 10:12 AM
To: Struts Users Mailing List
Subject: RE: Problem with the forward attribute in action


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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




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

Reply via email to