You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andrew Kuzmin <ku...@soft-ukraine.com> on 2002/12/09 18:12:12 UTC
Modules and Tiles: Problem
I have two modules:
A) struts-config.xml:
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/conf/tiles-defs.xml,
/WEB-INF/conf/tiles-defs-personalize.xml"/>
<set-property property="moduleAware" value="true" />
</plug-in>
B) struts-config-personalize.xml:
<action-mappings>
<action path="/Courses" type="XXX.actions.CoursesActions">
<forward name="success" path="personalize.courses.default" />
</action>
</action-mappings>
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/conf/tiles-defs.xml,
/WEB-INF/conf/tiles-defs-personalize.xml" />
<set-property property="moduleAware" value="true" />
</plug-in>
When i attempt to invoke http://XXX/personalize/Courses.do i have Error 404
and on Tomcat console i see :
DEBUG [Thread-14] (RequestUtils.java:1446) - Get module name for path
/personali
ze/Courses.do
DEBUG [Thread-14] (RequestUtils.java:1468) - Module name found: /personalize
INFO [Thread-14] (RequestProcessor.java:225) - Processing a 'GET' for path
'/Co
urses'
DEBUG [Thread-14] (RequestProcessor.java:305) - Looking for Action instance
for
class XXX.actions.CoursesActions
DEBUG [Thread-14] (RequestProcessor.java:314) - Returning existing Action
inst
ance
DEBUG [Thread-14] (RequestProcessor.java:428) -
processForwardConfig(ForwardConf
ig[name=success,path=personalize.courses.default,redirect=false,contextRelat
ive=
false])
But i am expecting TilesRequestProcessor.
--
Andrew Kuzmin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Modules and Tiles: Problem
Posted by Andrew Kuzmin <ku...@soft-ukraine.com>.
Hi, Cedric
----- Original Message -----
From: "Cedric Dumoulin" <ce...@apache.org>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, December 09, 2002 10:19 PM
Subject: Re: Modules and Tiles: Problem
>
> Hi,
>
> Is there any errors regarding Tiles in the Tomcat console (you may
> need to enable logging for Tiles) ?
>
> Cedric
>
I didn't see any errors in the Tomcat console. I enabled logging for Tiles.
I just have downloaded new version (jakarta-struts-20021209) and I don't
have this problem.
Previous version was jakarta-struts-20021114.
> Andrew Kuzmin wrote:
>
> >I have two modules:
> >
> >A) struts-config.xml:
> >
> > <plug-in className="org.apache.struts.tiles.TilesPlugin">
> > <set-property property="definitions-config"
> > value="/WEB-INF/conf/tiles-defs.xml,
> > /WEB-INF/conf/tiles-defs-personalize.xml"/>
> > <set-property property="moduleAware" value="true" />
> > </plug-in>
> >
> >B) struts-config-personalize.xml:
> >
> > <action-mappings>
> >
> > <action path="/Courses" type="XXX.actions.CoursesActions">
> > <forward name="success" path="personalize.courses.default" />
> > </action>
> >
> > </action-mappings>
> >
> > <plug-in className="org.apache.struts.tiles.TilesPlugin">
> > <set-property property="definitions-config"
> > value="/WEB-INF/conf/tiles-defs.xml,
> > /WEB-INF/conf/tiles-defs-personalize.xml" />
> > <set-property property="moduleAware" value="true" />
> > </plug-in>
> >
> >When i attempt to invoke http://XXX/personalize/Courses.do i have Error
404
> >and on Tomcat console i see :
> >
> >DEBUG [Thread-14] (RequestUtils.java:1446) - Get module name for path
> >/personali
> >ze/Courses.do
> >DEBUG [Thread-14] (RequestUtils.java:1468) - Module name found:
/personalize
> > INFO [Thread-14] (RequestProcessor.java:225) - Processing a 'GET' for
path
> >'/Co
> >urses'
> >DEBUG [Thread-14] (RequestProcessor.java:305) - Looking for Action
instance
> >for
> > class XXX.actions.CoursesActions
> >DEBUG [Thread-14] (RequestProcessor.java:314) - Returning existing
Action
> >inst
> >ance
> >DEBUG [Thread-14] (RequestProcessor.java:428) -
> >processForwardConfig(ForwardConf
>
>ig[name=success,path=personalize.courses.default,redirect=false,contextRela
t
> >ive=
> >false])
> >
> >But i am expecting TilesRequestProcessor.
> >
> >--
> >Andrew Kuzmin
> >
--
Andrew Kuzmin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Modules and Tiles: Problem
Posted by Cedric Dumoulin <ce...@apache.org>.
Hi,
Is there any errors regarding Tiles in the Tomcat console (you may
need to enable logging for Tiles) ?
Cedric
Andrew Kuzmin wrote:
>I have two modules:
>
>A) struts-config.xml:
>
> <plug-in className="org.apache.struts.tiles.TilesPlugin">
> <set-property property="definitions-config"
> value="/WEB-INF/conf/tiles-defs.xml,
> /WEB-INF/conf/tiles-defs-personalize.xml"/>
> <set-property property="moduleAware" value="true" />
> </plug-in>
>
>B) struts-config-personalize.xml:
>
> <action-mappings>
>
> <action path="/Courses" type="XXX.actions.CoursesActions">
> <forward name="success" path="personalize.courses.default" />
> </action>
>
> </action-mappings>
>
> <plug-in className="org.apache.struts.tiles.TilesPlugin">
> <set-property property="definitions-config"
> value="/WEB-INF/conf/tiles-defs.xml,
> /WEB-INF/conf/tiles-defs-personalize.xml" />
> <set-property property="moduleAware" value="true" />
> </plug-in>
>
>When i attempt to invoke http://XXX/personalize/Courses.do i have Error 404
>and on Tomcat console i see :
>
>DEBUG [Thread-14] (RequestUtils.java:1446) - Get module name for path
>/personali
>ze/Courses.do
>DEBUG [Thread-14] (RequestUtils.java:1468) - Module name found: /personalize
> INFO [Thread-14] (RequestProcessor.java:225) - Processing a 'GET' for path
>'/Co
>urses'
>DEBUG [Thread-14] (RequestProcessor.java:305) - Looking for Action instance
>for
> class XXX.actions.CoursesActions
>DEBUG [Thread-14] (RequestProcessor.java:314) - Returning existing Action
>inst
>ance
>DEBUG [Thread-14] (RequestProcessor.java:428) -
>processForwardConfig(ForwardConf
>ig[name=success,path=personalize.courses.default,redirect=false,contextRelat
>ive=
>false])
>
>But i am expecting TilesRequestProcessor.
>
>--
>Andrew Kuzmin
>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>