当路径深度达到3456等级别时,要比对tiles.xml文件中的定义路径。如果没有匹配的路径,需要重新定义个路径。
struts.xml
<action class="projectinfoqueryAction" name="projectinfoquery">
<result name="listProject" type="tiles">/projectmgr/projectinfoquery/listProject</result>
<result name="showSummary" type="tiles">/projectmgr/projectinfoquery/showSummary</result>
<result name="showProject" type="tiles">/projectmgr/projectinfoquery/summary/showProject</result>
</action>
tiles.xml'
<tiles-definitions>
<!-- template/*nav.jsp -->
<definition name="nav" templateExpression="/templates/${session.layout}/templatenav.jsp">
<display-name>目前等同style</display-name>
<put-attribute name="trails" type="template" value="/none.jsp" />
<put-attribute name="showExtMsg" type="template" value="../float_div.jsp" />
<put-attribute name="body" type="template" value="/welcome.jsp" />
</definition>
<definition extends="nav" name="/*/*/*/*">
<put-attribute name="body" type="template" value="/view/{1}/{2}/{3}/{4}.jsp" />
</definition>
</tiles-definitions>