You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Les Dunaway <le...@glsi.us> on 2005/03/14 01:27:30 UTC
Tiles def not recognized by ForwardAction
I'm moving a running app from Struts1.1 to Struts 1.24.
My problem is with the deprecation of NoOpAction and it's replacement
with ForwardAction.
I've crawled through the forums enough to see that there's been some
problems in this area - ForwardAction doesn't understand that a
parameter containing ".fred" points to a Tiles def named .fred
I haven't found any solution.
Can someone point me in the right direction?
>>>>>> Tiles Def (one of a bunch that all worked just fine)
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<!-- The main thing -->
<definition name=".mainDef" page="/pages/tiles/mainLayout.jsp"
controllerClass="us.glsi.nav.TilesController">
<put name="title" value="HighGear2005" />
<put name="header" value="/pages/tiles/header.jsp" />
<put name="menubar" value="/pages/tiles/menubar.jsp" />
<put name="body" value="/pages/tiles/body.jsp" />
<put name="footer" value="/pages/tiles/footer.jsp" />
</definition>
<!-- home tile -->
<definition name=".home" extends=".mainDef">
<put name="body" value="/pages/tiles/home.jsp" />
</definition>
>>>>> struts-config entry
<!-- Public Home page -->
<action path="/Home"
type="org.apache.struts.actions.ForwardAction"
parameter=".home">
<forward name="success" path=".home"/>
</action>
--
------------------------------------------------------------------------
L.W.(Les) Dunaway
GL Services
770-974-4289 / 888-243-9886
les@glsi.us
"Great minds discuss ideas. Average minds discuss events. Small minds
discuss people." - Admiral Hyman Rickover
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Tiles def not recognized by ForwardAction
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Les,
I think the forward in v1.2 is supposed to be more like this:
<action path="/Home" forward=".home." />
Regards,
David
-----Original Message-----
From: Les Dunaway [mailto:les@glsi.us]
Sent: Sunday, March 13, 2005 7:28 PM
To: user@struts.apache.org
Subject: Tiles def not recognized by ForwardAction
I'm moving a running app from Struts1.1 to Struts 1.24.
My problem is with the deprecation of NoOpAction and it's replacement
with ForwardAction.
I've crawled through the forums enough to see that there's been some
problems in this area - ForwardAction doesn't understand that a
parameter containing ".fred" points to a Tiles def named .fred
I haven't found any solution.
Can someone point me in the right direction?
>>>>>> Tiles Def (one of a bunch that all worked just fine)
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<!-- The main thing -->
<definition name=".mainDef" page="/pages/tiles/mainLayout.jsp"
controllerClass="us.glsi.nav.TilesController">
<put name="title" value="HighGear2005" />
<put name="header" value="/pages/tiles/header.jsp" />
<put name="menubar" value="/pages/tiles/menubar.jsp" />
<put name="body" value="/pages/tiles/body.jsp" />
<put name="footer" value="/pages/tiles/footer.jsp" />
</definition>
<!-- home tile -->
<definition name=".home" extends=".mainDef">
<put name="body" value="/pages/tiles/home.jsp" />
</definition>
>>>>> struts-config entry
<!-- Public Home page -->
<action path="/Home"
type="org.apache.struts.actions.ForwardAction"
parameter=".home">
<forward name="success" path=".home"/>
</action>
--
------------------------------------------------------------------------
L.W.(Les) Dunaway
GL Services
770-974-4289 / 888-243-9886
les@glsi.us
"Great minds discuss ideas. Average minds discuss events. Small minds
discuss people." - Admiral Hyman Rickover
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org