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

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

      1. <tfoot id='OQK5c'></tfoot>
      2. 根据标记文件中的 TLD 或属性指令,属性名称不接受任何表达式

        According to TLD or attribute directive in tag file, attribute name does not accept any expressions(根据标记文件中的 TLD 或属性指令,属性名称不接受任何表达式)

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

          <tbody id='VLOP5'></tbody>
          1. <tfoot id='VLOP5'></tfoot>

                <bdo id='VLOP5'></bdo><ul id='VLOP5'></ul>
              • <legend id='VLOP5'><style id='VLOP5'><dir id='VLOP5'><q id='VLOP5'></q></dir></style></legend>
                <i id='VLOP5'><tr id='VLOP5'><dt id='VLOP5'><q id='VLOP5'><span id='VLOP5'><b id='VLOP5'><form id='VLOP5'><ins id='VLOP5'></ins><ul id='VLOP5'></ul><sub id='VLOP5'></sub></form><legend id='VLOP5'></legend><bdo id='VLOP5'><pre id='VLOP5'><center id='VLOP5'></center></pre></bdo></b><th id='VLOP5'></th></span></q></dt></tr></i><div id='VLOP5'><tfoot id='VLOP5'></tfoot><dl id='VLOP5'><fieldset id='VLOP5'></fieldset></dl></div>
                • 本文介绍了根据标记文件中的 TLD 或属性指令,属性名称不接受任何表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 JSP 中编写了以下代码.

                  I write the following code in JSP.

                  <%
                  String p_loginPassword = OpeCommon.LOGIN_PASSWORD;
                  String p_encryptCode = OpeCommon.encriptPassword(OpeCommon.KEY_USER_ID, OpeCommon.KEY_USER_PASSCODE);
                  %>
                  <s:url id="printURL" action="actMod" method="printout">
                      <s:param name="<%=OpeCommon.LOGIN_PASSWORD %>"><%=OpeCommon.encriptPassword(OpeCommon.KEY_USER_ID, OpeCommon.KEY_USER_PASSCODE)%></s:param>
                  </s:url>
                  

                  显示错误:根据标签文件中的 TLD 或属性指令,属性名称不接受任何表达式

                  It displays error : According to TLD or attribute directive in tag file, attribute name does not accept any expressions

                  我该怎么写,请给我一些建议.

                  How should I write for that, pls give me some suggestions.

                  推荐答案

                  不要在struts标签中使用scriptlet,不要在JSP中使用,如果不行你可以试试

                  Don't use scriptlets in the struts tags, don't use it at all in JSP, if you can't you may try

                  <s:set var="loginPassword"><%=OpeCommon.LOGIN_PASSWORD %></s:set>
                  <s:param name="%{#loginPassword}"><%=OpeCommon.encriptPassword(OpeCommon.KEY_USER_ID, OpeCommon.KEY_USER_PASSCODE)%></s:param>
                  

                  请注意,可以通过 OGNL 表达式访问常量,并且该表达式在 struts 标记中是允许的.但是,它适用于 OGNL 语法,您应该为静态内容提供 FQCN.常量不需要在配置中启用静态访问,但需要调用静态方法.如果您允许静态访问,那么一切都可以通过 OGNL 表达式完成,如果不仅可以访问常量,例如

                  Note, that constants could be accessed through the OGNL expression, and that expression is allowed in the struts tags. But, it applies to the OGNL syntax and you should supply FQCN to the static content. Constants don't require enabling static access in the configuration, but calling a static method is required. If you allow static access then everything could be done via OGNL expressions, if not only constants could be accessed like

                  <s:param name="%{@com.package.OpeCommon@LOGIN_PASSWORD}">
                  

                  这篇关于根据标记文件中的 TLD 或属性指令,属性名称不接受任何表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='7qZ0y'></tbody>

                  <small id='7qZ0y'></small><noframes id='7qZ0y'>

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