hi list,
I guess i have started learning as i have solved my first big problem.
I was adamant on putting all my modules in one DIR i.e inside "jsp". That
was invalidating the strutus module-prefix role that forces me to put all
module inside ROOT only.
Given the direction suggested by Eddie(you *got* to go ythru controller ;-)
, i tried to do alternate way and got success with
<action path="/AddContact"
type="org.apache.struts.actions.ForwardAction"
parameter="/jsp/mod1/addCont_b.jsp"/>
in my struts-mod1.xml
pretty simple it was. Wonder why did i spent too much time :-)
thanks to berker,eddie and everybody out there.
-navjot
----- Original Message -----
From: "Noureddine Bekrar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 8:09 PM
Subject: Re: Need one mnore directory before module-prefix
| 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]
|
|
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]