struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fogleson, Allen" <>
Subject RE: crazy struts tiles problem
Date Wed, 02 Mar 2005 03:35:12 GMT
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

  <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 name="assessment.calc" extends="common.default">
    <put name="body" value=" AssessmentCalc.jsp"/>

then just forward to assessment.calc in your actionForward. Here is a
snip from the struts config for an example:

<action path="/assessmentCalc"
  <forward name="success" path="assessment.calc" redirect="false"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message