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

  • <small id='Smsqo'></small><noframes id='Smsqo'>

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

  • <tfoot id='Smsqo'></tfoot>

      1. <legend id='Smsqo'><style id='Smsqo'><dir id='Smsqo'><q id='Smsqo'></q></dir></style></legend>
      2. 隐藏从jsp传递到struts2动作类的参数

        hide passed parameter from jsp to struts2 action class(隐藏从jsp传递到struts2动作类的参数)

            <tbody id='5WkVE'></tbody>

          1. <small id='5WkVE'></small><noframes id='5WkVE'>

            <tfoot id='5WkVE'></tfoot>

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

              • <bdo id='5WkVE'></bdo><ul id='5WkVE'></ul>
                  本文介绍了隐藏从jsp传递到struts2动作类的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  <s:url action="someAction" var="act">
                  <s:param name="param1">value1</s:param>
                  </s:url>
                  <s:a href="%{act}">Go Action</s:a>
                  

                  通过点击 Go Action 链接,地址将为 www.example.com/someAction?param1=value1我想在提交表单时隐藏传递的参数(param1=value1),例如 method="POST".无论如何我可以做到吗?谢谢.

                  By clicking Go Action link, the address will be www.example.com/someAction?param1=value1 I want to hide passed parameters (param1=value1) like method="POST" in submitting of form. Is there anyway I can do it? Thanks.

                  推荐答案

                  要隐藏传递的参数,实际上需要提交表单.您应该阻止 click 事件的默认行为并将其替换为 form 事件.像本例那样做

                  To hide passed parameter actually you need to submit the form. You should prevent the default behavior of the click event and replace it with the form event. Do it like in this example

                  <s:form id="f1" action="someAction">
                    <s:hidden name="param1" value="value1"/>
                    <s:url action="someAction" var="act"/>
                    <s:a id="a1" href="%{act}">Go Action</s:a>
                    <script type="text/javascript">
                      $(document).ready(function() {
                        $("#a1").click(function(event) {
                          event.preventDefault();
                          $("#f1").submit();
                        });
                      });
                    </script>
                  </s:form>
                  

                  这篇关于隐藏从jsp传递到struts2动作类的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的游戏框架.有什么建议吗?)

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

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

                            <legend id='yaaon'><style id='yaaon'><dir id='yaaon'><q id='yaaon'></q></dir></style></legend>