The forward is for when you do not need to execute any Action code
before showing a page, but still want the request to go through the
Struts request processor instead of having the user go directly to the
jsp.

Hubert

On Fri, 4 Mar 2005 15:15:52 -0600, Scott Purcell <[EMAIL PROTECTED]> wrote:
> Thank you Hubert,
> 
> That has been screwing me up for the past day.  The docs for <action 
> attribute> says there is a forward, but if the forward is used, it does not 
> use the action? This seems kind of strange, but I got it working now.
> 
> Thanks,
> 
> 
> -----Original Message-----
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 04, 2005 3:08 PM
> To: Struts Users Mailing List
> Subject: Re: Does not call action?
> 
> You probably meant to do something this:
> 
>   <action
>      path="/manageAssets"
>      type="com.skp.action.LoginAction">
>      <forward name="success" path="/jsp/admin/manageAssets.jsp"
> redirect="true" />
>   </action>
> 
>    ... where LoginAction would return mapping.findForward("success");
> 
> The way you wrote it told Struts that for requests that match
> "/manageAssets", it should automatically redirect the request to the
> "/jsp/admin/manageAssets.jsp"
> 
> Hubert
> 
> On Fri, 4 Mar 2005 14:55:42 -0600, Scott Purcell <[EMAIL PROTECTED]> wrote:
> > Hello,
> > I have this in my struts-config.xml file
> >
> >  <action
> >     path="/manageAssets"
> >     type="com.skp.action.LoginAction"
> >     forward="/jsp/admin/manageAssets.jsp" redirect="true" />
> >
> > When I call the container with "/action/manageAssets" it just forwards to 
> > the jsp page and does not use the type? I put a bunch of println statements 
> > in com.skp.action.LoginAction but it is not called? Could I be missing 
> > something?
> >
> > Thanks,
> >
> > Scott K Purcell | Developer | VERTIS |
> > 555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
> > 314.588.0720 Ext:1320 | [EMAIL PROTECTED] | http://www.vertisinc.com 
> > <http://www.vertisinc.com/>
> >
> > Vertis is the premier provider of targeted advertising, media, and
> > marketing services that drive consumers to marketers more effectively.
> >
> >
> 
> ---------------------------------------------------------------------
> 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