I am currently working on my first tiles / struts module program myself. One thing that I had to do was to add the module aware option to the plug-in in struts-config.xml.
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml,/WEB-INF/module1/tiles-defs.xml" />
<set-property property="moduleAware" value="true"/>
</plug-in>
I have not had a problem with the request processor running twice. Not sure if this has anything to do with it or not, but it is worth a try :)
"Ronnie Arosa" <[EMAIL PROTECTED]>
07/20/2005 06:18 AM
|
|
Hello everybody,
I'm working in a struts application with tiles and modules. It’s my first
time working with tiles and I felt into a problem: the TilesRequestProcessor
is called twice. This happens when I forward my actions to a tile. If the
same action is forward to a simple page (i.e. a jsp page) everything goes
normally.
Here is one of my actions’ definition:
<action path="/myRequest" type="com.indicusoft.struts.myRequestAction">
<forward name="failure" path="myRequest.page"></forward>
<forward name="success" path="myRequest.page"></forward>
</action>
And this is my tiles’ definition file:
<definition name=".mainLayout" path="/common/classicLayout.jsp">
<put name="title" value="My application"></put>
<put name="header" value="/common/header.jsp"></put>
<put name="menu" value="/commons/blank.jsp"></put>
<put name="footer" value="/common/footer.jsp"></put>
<put name="error" value="/common/error.jsp"></put>
<put name="body" value=""></put>
</definition>
<definition name="myRequest.page" extends=".mainLayout">
<put name="title" value="Request Page"></put>
<put name="body" value="/myRequest.jsp"></put>
</definition>
Thanks in advance.
Ronnie.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]