• <bdo id='MbrMP'></bdo><ul id='MbrMP'></ul>
        <tfoot id='MbrMP'></tfoot>
        <legend id='MbrMP'><style id='MbrMP'><dir id='MbrMP'><q id='MbrMP'></q></dir></style></legend>

        <small id='MbrMP'></small><noframes id='MbrMP'>

      1. <i id='MbrMP'><tr id='MbrMP'><dt id='MbrMP'><q id='MbrMP'><span id='MbrMP'><b id='MbrMP'><form id='MbrMP'><ins id='MbrMP'></ins><ul id='MbrMP'></ul><sub id='MbrMP'></sub></form><legend id='MbrMP'></legend><bdo id='MbrMP'><pre id='MbrMP'><center id='MbrMP'></center></pre></bdo></b><th id='MbrMP'></th></span></q></dt></tr></i><div id='MbrMP'><tfoot id='MbrMP'></tfoot><dl id='MbrMP'><fieldset id='MbrMP'></fieldset></dl></div>

        动作映射中的错误 URL 匹配

        Wrong URL match in action mapping(动作映射中的错误 URL 匹配)

        <small id='dGht3'></small><noframes id='dGht3'>

        <tfoot id='dGht3'></tfoot>

        <i id='dGht3'><tr id='dGht3'><dt id='dGht3'><q id='dGht3'><span id='dGht3'><b id='dGht3'><form id='dGht3'><ins id='dGht3'></ins><ul id='dGht3'></ul><sub id='dGht3'></sub></form><legend id='dGht3'></legend><bdo id='dGht3'><pre id='dGht3'><center id='dGht3'></center></pre></bdo></b><th id='dGht3'></th></span></q></dt></tr></i><div id='dGht3'><tfoot id='dGht3'></tfoot><dl id='dGht3'><fieldset id='dGht3'></fieldset></dl></div>

                <tbody id='dGht3'></tbody>
              <legend id='dGht3'><style id='dGht3'><dir id='dGht3'><q id='dGht3'></q></dir></style></legend>

                  <bdo id='dGht3'></bdo><ul id='dGht3'></ul>
                  本文介绍了动作映射中的错误 URL 匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  <action name="/partner/*/*" class="webStoreAction">
                      <param name="saveUrl">true</param>
                      <param name="homeName">HomePartner</param>
                      <param name="partner">{1}</param>
                      <param name="partnerId">{2}</param>
                      <param name="homeFromMenu">false</param>
                      <result name="success" type="jsf">
                          /WEB-INF/pages/load.xhtml
                      </result>
                  </action>
                  

                  为什么 localhost:8080/partner/partnerName 与此操作匹配?

                  Why localhost:8080/partner/partnerName matches with this action?

                  推荐答案

                  试试 <constant name="struts.patternMatcher"value=regex"/> 上述常量唯一可行的匹配器.这通常与高级通配符模式一起使用,这里解释.

                  Try <constant name="struts.patternMatcher" value="regex"/> the only viable matcher for the constants above. This is usually used with advanced wildcards mode, explained here.

                  高级通配符从 2.1.9+ 开始,可以在动作名称中定义正则表达式.要使用这种形式的通配符,必须设置以下常量:

                  Advanced Wildcards From 2.1.9+ regular expressions can be defined defined in the action name. To use this form of wild card, the following constants must be set:

                  <constant name="struts.enable.SlashesInActionNames" value="true"/>
                  <constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
                  <constant name="struts.patternMatcher" value="regex" />
                  

                  URL 分为命名空间 / 和操作名称 partner/partnerName.最后一个匹配使用通配符映射器从操作配置中的名称编译的模式,这是一个默认映射器.

                  The URL splitted into namespace / and action name partner/partnerName. The last matches a pattern compiled from the name in the action config using a wildcard mapper, which is a default mapper.

                  这篇关于动作映射中的错误 URL 匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Java Bytecode Manipulation Library Suggestions(Java 字节码操作库建议)
                  Java CLI UI-design: frameworks or libraries?(Java CLI UI 设计:框架还是库?)
                  About the use of Beans.xml configuration file in Spring Framework application(关于Spring Framework应用中Beans.xml配置文件的使用)
                  What is the difference between Spring, Struts, Hibernate, JavaServer Faces, Tapestry?(Spring、Struts、Hibernate、JavaServer Faces、Tapestry 有什么区别?)
                  Are there any android application framework like spring?(有没有像spring这样的android应用程序框架?)
                  Java Swing based game framework. Any advice?(基于 Java Swing 的游戏框架.有什么建议吗?)

                      <small id='cyoj6'></small><noframes id='cyoj6'>

                      • <bdo id='cyoj6'></bdo><ul id='cyoj6'></ul>
                          <tbody id='cyoj6'></tbody>

                          1. <legend id='cyoj6'><style id='cyoj6'><dir id='cyoj6'><q id='cyoj6'></q></dir></style></legend>
                          2. <tfoot id='cyoj6'></tfoot>
                            <i id='cyoj6'><tr id='cyoj6'><dt id='cyoj6'><q id='cyoj6'><span id='cyoj6'><b id='cyoj6'><form id='cyoj6'><ins id='cyoj6'></ins><ul id='cyoj6'></ul><sub id='cyoj6'></sub></form><legend id='cyoj6'></legend><bdo id='cyoj6'><pre id='cyoj6'><center id='cyoj6'></center></pre></bdo></b><th id='cyoj6'></th></span></q></dt></tr></i><div id='cyoj6'><tfoot id='cyoj6'></tfoot><dl id='cyoj6'><fieldset id='cyoj6'></fieldset></dl></div>