Action path is relative to the current webapp.
What you want is a crosscontext forward, ie. : getServletContext().getContext("/Webapp2").getRequestDispatcher("/action2.do").forward(...)

Be sure your container accept it.

Hope helps.

Mineau, Christian wrote:

We develop an application with Struts MVC. In this application, we have
two webApps containing some Struts Actions in each one (i.e two
Struts-config.xml files). These both webApps are in separate EAR files.




Example:
Webapp1 contains action11 and action12

Webapp2 contains action21 and action22



My concern is when I'm in the action11 and I want forward in the
action22 directly I found the error "Invalid path was requested". I
tried this configuration:



<action path="/action11" type="ca.xyz.Action11" name="action11Form"
parameter="event">

           <forward name="success"
path="/Webapp2/action22.do?event=initCreate"/>

</action>


Somebody can help me,

Thx.




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

Reply via email to