<tfoot id='TpoXB'></tfoot>
      1. <legend id='TpoXB'><style id='TpoXB'><dir id='TpoXB'><q id='TpoXB'></q></dir></style></legend>

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

        <i id='TpoXB'><tr id='TpoXB'><dt id='TpoXB'><q id='TpoXB'><span id='TpoXB'><b id='TpoXB'><form id='TpoXB'><ins id='TpoXB'></ins><ul id='TpoXB'></ul><sub id='TpoXB'></sub></form><legend id='TpoXB'></legend><bdo id='TpoXB'><pre id='TpoXB'><center id='TpoXB'></center></pre></bdo></b><th id='TpoXB'></th></span></q></dt></tr></i><div id='TpoXB'><tfoot id='TpoXB'></tfoot><dl id='TpoXB'><fieldset id='TpoXB'></fieldset></dl></div>
          <bdo id='TpoXB'></bdo><ul id='TpoXB'></ul>
      2. 在 Struts2 中重定向时在 url 中传递参数

        Passing parameters in url while redirecting in Struts2(在 Struts2 中重定向时在 url 中传递参数)
      3. <legend id='sqPhR'><style id='sqPhR'><dir id='sqPhR'><q id='sqPhR'></q></dir></style></legend>

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

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

                  <tbody id='sqPhR'></tbody>
              • <tfoot id='sqPhR'></tfoot>
                  <bdo id='sqPhR'></bdo><ul id='sqPhR'></ul>

                  本文介绍了在 Struts2 中重定向时在 url 中传递参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  可能重复:
                  Strut2 - 在下一个动作中获取属性值

                  我正在尝试使用 Struts2 实现以下目标

                  I am trying to achieve the following using Struts2

                  response.sendRedirect("Pay.jsp?msg=transfer");
                  

                  这就是我正在做的:

                   <action name="AddPayAction" class="controller.AddPayAction">
                              <param name="paraA"></param>
                              <param name="paraB"></param>
                              <param name="msg">SomeMessage</param>
                              <result name="error">/Error.jsp</result>
                              <result name="success" type="redirect">/Pay.jsp</result>
                   </action>
                  

                  关于上述内容没有被重定向为的任何建议:

                  Any suggestions why the above doesn't get redirected as:

                        Pay.jsp?msg=SomeMessage
                  

                  推荐答案

                  到目前为止,对我有用的解决方案是

                  So far the solution that worked for me was

                   <result name="success" type="redirect">
                                  <param name="location">/Pay.jsp?msg=${msg}</param>
                   </result>
                  

                  msg 的 setter 和 getter 在 action 中定义

                  where the setters and getters of msg are defined in the action

                  这篇关于在 Struts2 中重定向时在 url 中传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                  <legend id='qhfrS'><style id='qhfrS'><dir id='qhfrS'><q id='qhfrS'></q></dir></style></legend>
                    <bdo id='qhfrS'></bdo><ul id='qhfrS'></ul>

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

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