<tfoot id='8Dtbm'></tfoot>

<small id='8Dtbm'></small><noframes id='8Dtbm'>

    • <bdo id='8Dtbm'></bdo><ul id='8Dtbm'></ul>

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

        <legend id='8Dtbm'><style id='8Dtbm'><dir id='8Dtbm'><q id='8Dtbm'></q></dir></style></legend>
      1. 如何将来自 servlet 的请求转发到 struts2 的操作?

        时间:2023-09-25

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

                <tbody id='DpII3'></tbody>

                  <legend id='DpII3'><style id='DpII3'><dir id='DpII3'><q id='DpII3'></q></dir></style></legend>
                • 本文介绍了如何将来自 servlet 的请求转发到 struts2 的操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想像这样使用 RequestDispacher 将请求从 Servlet 转发到 Action

                  I want to forward a request from Servlet to Action like this using RequestDispacher like this

                  RequestDispatcher dispatcher=request.getRequestDispatcher("hello.action");
                  dispatcher.include(request, response);
                  

                  它不工作.我该如何解决这个问题?

                  It's not working. How can I resolve this problem?

                  推荐答案

                  为了做到这一点,您可能还需要将过滤器设置为在 FORWARD 上运行(并且如您的代码所示,包括,尽管您声明您想要一个 FORWARD):

                  In order to do this you may also need to set the filter to run on FORWARD (and INCLUDE as your code shows, although you state you want a FORWARD):

                  <filter-mapping>
                    <filter-name>struts2</filter-name>
                    <url-pattern>/*</url-pattern>
                    <dispatcher>REQUEST</dispatcher> 
                    <dispatcher>FORWARD</dispatcher>
                    <dispatcher>INCLUDE</dispatcher> <!-- If you want includes as well -->
                  </filter-mapping>
                  

                  这篇关于如何将来自 servlet 的请求转发到 struts2 的操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:通过重定向到操作来保留所有请求参数 下一篇:#{} ${} 和 %{} 有什么区别?

                  相关文章

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

                    1. <small id='XAYDY'></small><noframes id='XAYDY'>

                        <bdo id='XAYDY'></bdo><ul id='XAYDY'></ul>

                      <tfoot id='XAYDY'></tfoot>
                    2. <legend id='XAYDY'><style id='XAYDY'><dir id='XAYDY'><q id='XAYDY'></q></dir></style></legend>