Try this
<forward contextRelative="true" name="error" path="/doError.do"/> in /WEB-INF/conf/struts-config-news.xml




Franck Lefebure wrote:
Well,
I learned this way of using muti-config modules in the article

http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html?page=2

I don't have any problem with it but I'm looking for
the smartest way to define a all-modules global-forward

 ... Or the smartest way to handle exception in a multi-module struts
configuration !

Thanks
--
Franck Lefebure
equipe web http://www.orangecaraibe.com
mailto:[EMAIL PROTECTED]
0590323872
0690569880
----- Original Message -----
From: "Navneet Karnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 3:49 PM
Subject: Re: Multi config files and global forward



Do you intend to make these different modules ? If not, then this is the
wrong way to split files. You must use the xml way of splitting the
files, or give the config files in the same param-value tag seperated by
comma.

- Navneet
Umber Business Solutions Pvt Ltd
http://www.umber.biz

Franck Lefebure said the following on 25/09/2003 1:09 AM:

Hello,

My web.xml looks like :

<servlet>
   <servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

   <init-param>
       <param-name>config</param-name>
       <param-value>/WEB-INF/struts-config.xml</param-value>
   </init-param>
   <init-param>
       <param-name>config/news</param-name>
       <param-value>/WEB-INF/conf/struts-config-news.xml</param-value>
   </init-param>
   ...............

In /WEB-INF/struts-config.xml , I have the following action :

<global-forwards>
   <forward name="error" path="/doError.do"/>
 </global-forwards>

 <action-mappings>
   <action path = "/doError" scope="request"
type="com.orange.struts.actions.ErrorAction">
       <forward name="success" path="/error.jsp" redirect="false"/>
   </action>
 </action-mappings>

I want in /WEB-INF/conf/struts-config-news.xml to define  global-forward
towards the /doError.do in the main file :

Something like :

 <global-forwards>
   <forward name="error" path="/../doError.do"/>
 </global-forwards>

But, It doesn't work. If I add redirect="true" : <forward name="error"
path="/../doError.do" redirect="true"/>
Then it's ok But I would like to keep my request scope

An idea ?
Thanks
Franck


-- Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[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]



--
Thanks
Manish Singla
x73166


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



Reply via email to