RE : Struts-config.xml and multiple module

2003-08-14 Thread Laurent MARQUEZ


-Message d'origine-
De : Raj Atchutuni [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 13 août 2003 14:04
À : Struts Users Mailing List
Objet : Re: Struts-config.xml and multiple module


Laurent,
Here is how i implemented mutiple modules. It is working. 
1. I am loading all the tile-defs from the 1st-config.xml
2. I removed Tiles-plugin from the 2nd-config.xml.
 
Note: Since i didnt have time to go through books i assumed, I cant use
Tiles-plugin in multiple config-xmls. Vola, it is working.
 
Ex: Assumed you have stable Struts 1.1.
-
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/1st-config.xml,
/WEB-INF/2nd-config.xml/param-value
 /init-param
-
Good luck
No, i would like to have that to respect 
The article seven lessons from the trenches
Point number3: use application modules

init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-nameconfig/project/param-name
  param-value/WEB-INF/struts-config-project.xml/param-value
/init-param



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



RE: Struts-config.xml and multiple module

2003-08-14 Thread Marcel Overdijk
Raj is right; you can use a Tiles plugin in each module.

Also: in the tiles-doc application are 3 concrete examples for switching
!!!


Only problem I'm encoutering is my log files shows each plugin is loaded
twice
(see lines marked with ) and the ReloadTiles and ViewTiles action
give a null pointer exception...

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.3
 13-aug-2003 14:10:54 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
 13-aug-2003 14:10:55 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='ApplicationResources', returnNull=true
 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='resources.application', returnNull=true
 13-aug-2003 14:10:58 org.apache.struts.tiles.TilesPlugin init
 INFO: Tiles definition factory loaded for module '/reflection'.
 13-aug-2003 14:10:58 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='resources.application', returnNull=true
 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory
createComponent
 INFO: XContent component 'news' loaded for module
'/xcontent4struts-0.3'.
 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory
createComponent
 INFO: XContent component 'products' loaded for module
'/xcontent4struts-0.3'.
 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.XContentPlugIn init
 INFO: XContent factory loaded for module '/xcontent4struts-0.3'.
 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='ApplicationResources', returnNull=true
 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='resources.application', returnNull=true
 13-aug-2003 14:11:00 org.apache.struts.tiles.TilesPlugin init
 INFO: Tiles definition factory loaded for module '/reflection'.
 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources
init
 INFO: Initializing, config='resources.application', returnNull=true
 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory
createComponent
 INFO: XContent component 'news' loaded for module
'/xcontent4struts-0.3'.
 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory
createComponent
 INFO: XContent component 'products' loaded for module
'/xcontent4struts-0.3'.
 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.XContentPlugIn init
 INFO: XContent factory loaded for module '/xcontent4struts-0.3'.
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.3


 


-Original Message-
From: Raj Atchutuni [mailto:[EMAIL PROTECTED] 
Sent: woensdag 13 augustus 2003 14:04
To: Struts Users Mailing List
Subject: Re: Struts-config.xml and multiple module


Laurent,
Here is how i implemented mutiple modules. It is working. 
1. I am loading all the tile-defs from the 1st-config.xml
2. I removed Tiles-plugin from the 2nd-config.xml.
 
Note: Since i didnt have time to go through books i assumed, I cant use
Tiles-plugin in multiple config-xmls. Vola, it is working.
 
Ex: Assumed you have stable Struts 1.1.
-
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/1st-config.xml,
/WEB-INF/2nd-config.xml/param-value
 /init-param
-
Good luck

Laurent MARQUEZ [EMAIL PROTECTED] wrote:
Hi, please complete my configuration file for multiple module.

I have now 2 struts-config.xml
And the link in my tiles-def.xml doesn't work, why? ## In
web.xml ##


config


/WEB-INF/struts-config.xml




config/project



/WEB-INF/struts-config-project.xml


##
In tiles-def.xml
##
path=/WEB-INF/jsp/layouts/menu.jsp 





link=/project/manager.do 

classtype=org.apache.struts.tiles.beans.SimpleMenuItem / 




##
In struts-config-project.xml
##

forward=/WEB-INF/jsp/project/manager.jsp



Any help is a blessing.
Laurent.


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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



RE: Struts-config.xml and multiple module

2003-08-14 Thread Raj Atchutuni
I assumed, since i am loading the Tiles-plugin from the 1st-config.xml all my 
tiles-defs are already loaded. So there is no point in loading the Tiles-plugin from 
the 2nd-config.xml.
I had this same problem. So, just remove Tiles-plugin from the 2nd-config.xml and list 
all your Tiles-defs in the 1st-config.xml.
 


Marcel Overdijk [EMAIL PROTECTED] wrote:
Raj is right; you can use a Tiles plugin in each module.

Also: in the tiles-doc application are 3 concrete examples for switching
!!!


Only problem I'm encoutering is my log files shows each plugin is loaded
twice
(see lines marked with ) and the ReloadTiles and ViewTiles action
give a null pointer exception...

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
13-aug-2003 14:10:54 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
13-aug-2003 14:10:55 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='ApplicationResources', returnNull=true
13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 14:10:58 org.apache.struts.tiles.TilesPlugin init
 INFO: Tiles definition factory loaded for module '/reflection'.
13-aug-2003 14:10:58 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'news' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'products' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 14:10:58 org.overdijk.xcontent4struts.XContentPlugIn init
INFO: XContent factory loaded for module '/xcontent4struts-0.3'.
13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='ApplicationResources', returnNull=true
13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 14:11:00 org.apache.struts.tiles.TilesPlugin init
 INFO: Tiles definition factory loaded for module '/reflection'.
13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='resources.application', returnNull=true
13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'news' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory
createComponent
INFO: XContent component 'products' loaded for module
'/xcontent4struts-0.3'.
13-aug-2003 14:11:01 org.overdijk.xcontent4struts.XContentPlugIn init
INFO: XContent factory loaded for module '/xcontent4struts-0.3'.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3





-Original Message-
From: Raj Atchutuni [mailto:[EMAIL PROTECTED] 
Sent: woensdag 13 augustus 2003 14:04
To: Struts Users Mailing List
Subject: Re: Struts-config.xml and multiple module


Laurent,
Here is how i implemented mutiple modules. It is working. 
1. I am loading all the tile-defs from the 1st-config.xml
2. I removed Tiles-plugin from the 2nd-config.xml.

Note: Since i didnt have time to go through books i assumed, I cant use
Tiles-plugin in multiple config-xmls. Vola, it is working.

Ex: Assumed you have stable Struts 1.1.
-


config


/WEB-INF/1st-config.xml,
/WEB-INF/2nd-config.xml


-
Good luck

Laurent MARQUEZ wrote:
Hi, please complete my configuration file for multiple module.

I have now 2 struts-config.xml
And the link in my tiles-def.xml doesn't work, why? ## In
web.xml ##


config


/WEB-INF/struts-config.xml




config/project



/WEB-INF/struts-config-project.xml


##
In tiles-def.xml
##
path=/WEB-INF/jsp/layouts/menu.jsp 





link=/project/manager.do 

classtype=org.apache.struts.tiles.beans.SimpleMenuItem / 




##
In struts-config-project.xml
##

forward=/WEB-INF/jsp/project/manager.jsp



Any help is a blessing.
Laurent.


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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Struts-config.xml and multiple module

2003-08-14 Thread Raj Atchutuni
Laurent,
Here is how i implemented mutiple modules. It is working. 
1. I am loading all the tile-defs from the 1st-config.xml
2. I removed Tiles-plugin from the 2nd-config.xml.
 
Note: Since i didnt have time to go through books i assumed, I cant use  Tiles-plugin 
in multiple config-xmls. Vola, it is working.
 
Ex: Assumed you have stable Struts 1.1.
-
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml/param-value
 /init-param
-
Good luck

Laurent MARQUEZ [EMAIL PROTECTED] wrote:
Hi, please complete my configuration file for multiple module.

I have now 2 struts-config.xml
And the link in my tiles-def.xml doesn't work, why? ## In
web.xml ##


config


/WEB-INF/struts-config.xml




config/project



/WEB-INF/struts-config-project.xml


##
In tiles-def.xml
##
path=/WEB-INF/jsp/layouts/menu.jsp 





link=/project/manager.do 

classtype=org.apache.struts.tiles.beans.SimpleMenuItem / 




##
In struts-config-project.xml
##

forward=/WEB-INF/jsp/project/manager.jsp



Any help is a blessing.
Laurent.


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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software