you can do that

<action path="/test"  type="TestAction.java">
      <forward name="testforward" path="/jsp/mod1/test.jsp">
      </forward>
 </action>

and at the end of the execute methode of your
testaction class do this:
mapping.findForward(testforward);


----- Original Message -----
From: "Navjot Singh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 3:25 PM
Subject: Re: Need one mnore directory before module-prefix


> hi bekrar,
>
> That i can do but i don't want to do. I thought there could be some way
out
> with forwardPattern stuff.
>
> I am ready to leave <action path="/test" forward="abc"/> (for it doesnot
> support forwardPattern)
> and SHIFT to
>
> <action ............>
>     <forward ............/>
> </action>
>
> kind of tag
>
> If this is not possible, can I write my own subclass ForwardAction and do
> the job.
> Where can I pre-pend "/jsp" to whatever url i will get from struts
(assuming
> it will be context-relative).
>
> regards
> Navjot Singh
>
> ----- Original Message -----
> From: "Noureddine Bekrar" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, March 13, 2003 7:48 PM
> Subject: Re: Need one mnore directory before module-prefix
>
>
> | you can use <action path="/Test" />
> |
> | when you write this , it's suppose that tou have an action mapping
called
> | "test" in your struts-config file ( redirection to your test action
class)
> | you can directley call the right forward in your test class with the
> | mapping.findForward(testforward);
> | the test forward is a forward that you declare in the struts config
(it's
> a
> | redirection to your jsp)
> | you can declare it like this:
> | /jsp/mod1/test.jsp
> |
> |
> |
> |
> |
> |
> |
> |
> | ---------------------------------------------------------------------
> | 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]
>
>


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

Reply via email to