<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动作类的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 中的默认语言环境设置以使其保持一致?)

                        <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>