I usually don't use the tiles taglib other than in my layout files...
here is how I would accomplish the same thing you want to do..
1) Modify your layout.jsp
<tiles:insert attribute="header"/>
<tiles:insert attribute="menubar"/>
<tiles:insert attribute="body"/>
<tiles:insert attribute="footer"/>
note body wasn't there before.
2) Modify the tiles-def.xml
<tiles-definitions>
<definition name="common.default" path="../layout/defaultLayout.jsp" >
<put name="header" value="/common/Top.jsp"/>
<put name="menubar" value="../common/Side.jsp"/>
<put name="body" value="blank.jsp"/>
<put name="footer" value="footer.jsp"/>
</definition>
<definition name="assessment.calc" extends="common.default">
<put name="body" value=" AssessmentCalc.jsp"/>
</definition>
</tiles-definitions>
then just forward to assessment.calc in your actionForward. Here is a
snip from the struts config for an example:
<action path="/assessmentCalc"
type="com.myactions.AssessmentCalcAction">
<forward name="success" path="assessment.calc" redirect="false"/>
</action>
HTH,
Al
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
|