Struts tiles problem


Web tier: servlets, JSP, Web frameworks: Struts tiles problem

  1. Struts tiles problem (2 messages)

    I am using struts tiles
    here is my struts-config:

    <plug-in className="org.apache.struts.tiles.TilesPlugin" >

    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
    <set-property property="definitions-debug" value="2" />
    <set-property property="definitions-parser-details" value="2"/>
    <set-property property="definitions-parser-validate" value="true"/>
    <set-property property="moduleAware" value="false"/>

    Here is my tiles-defs.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="footer" value="footer.jsp"/>



    Here is the essence in my layout file:
    <tiles:insert attribute="header"/>
    <tiles:insert attribute="menubar"/>
    <tiles:insert attribute="footer"/>

    Here is the jsp that uses the tiles
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

    <tiles:insert definition="common.default">
    <tiles:put name="body" value="AssessmentCalc.jsp"/>

    However when i go to that jsp, nothing shows, no exception is thrown, all files paths specified for the tiles are correct. What's going on?? please help!! thanks!

    Threaded Messages (2)

  2. Struts tiles problem[ Go to top ]

    What does the struts-config entry look like for the action that you are going to? What is the url you are typing in to the browser?
  3. Struts tiles problem[ Go to top ]

    If you're going to shove AssessmentCalc.jsp into the attribute named "body", you need a tile in your layout for it. Put <tiles:insert attribute="body"/> somewhere in the middle of your layout file.