zoukankan      html  css  js  c++  java
  • 地址路径过深时的处理方式

    当路径深度达到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>

  • 相关阅读:
    更好的抽屉效果(ios)
    系统拍照动画
    UITabBarController详解
    touch事件分发
    iOS UWebView详解
    iOS 监听声音按键
    webservice偶尔报黄页,解决方案
    FastReport脚本把数据绑定到文本控件上
    [转]js版的md5()
    JQuery中$.ajax()方法参数详解
  • 原文地址:https://www.cnblogs.com/guanghuiqq/p/2561507.html
Copyright © 2011-2022 走看看