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 <[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
RE: Struts-config.xml and multiple module
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 <[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]
Struts-config.xml and multiple module
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 ## ## In struts-config-project.xml ## Any help is a blessing. Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Struts-config.xml and multiple module
-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. - config /WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml - Good luck No, i would like to have that to respect The article seven lessons from the trenches Point number3: use application modules config /WEB-INF/struts-config.xml config/project /WEB-INF/struts-config-project.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-config.xml and multiple module
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">