Allen,
thanks! I figured out the cause of my problem, it was
actually tricky(or trivial). I forgot to put <%@
taglib uri="/WEB-INF/tiles..."%> on top of the page
and when I use <tiles:>, struts didn't complain, it
just treat them as regular html tags so they don't
show up on the page. I wonder why the jsp or struts
engine does not validate these tags... no error was
produced. anyway...
--- "Fogleson, Allen" <allen.fogleson@daugherty.com>
wrote:
> 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
>
>
__________________________________
Do you Yahoo!?
Yahoo! Sports - Sign up for Fantasy Baseball.
http://baseball.fantasysports.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
|