Hi,
I am using struts1.3.I have two struts-config.xml files in my application.I
am adding those files in web.xml.
<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/first-struts-config.xml,/WEB-INF/settings-struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>convertNull</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>chainConfig</param-name>
<param-value>
org/apache/struts/tiles/chain-config.xml
</param-value>
</init-param>
</servlet>
Each struts-config.xml file have seperate tiles-defs.xml .I am adding those
files like the following
first-struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/first-tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>
settings-struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/settingst-tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>
I am getting one error
javax.servlet.ServletException: Path .settings.users does not start with a
"/" character.
.settings.users definition is specified in settingst-tiles-defs.xml.
If i want to pick the definitions which are there in first-tiles-defs.xml
,then it is working fine.
Is there any Idea?
Regards
kondal
--
View this message in context:
http://www.nabble.com/Problem-with-multiple-tiles-defs.xmls-in-struts-tp21397498p21397498.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]