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

      <legend id='tUY5x'><style id='tUY5x'><dir id='tUY5x'><q id='tUY5x'></q></dir></style></legend>
    1. <small id='tUY5x'></small><noframes id='tUY5x'>

        • <bdo id='tUY5x'></bdo><ul id='tUY5x'></ul>
      1. <tfoot id='tUY5x'></tfoot>

        Struts 2 #{} 在 Netbeans 7.3 中给出编译错误

        时间:2023-09-25

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

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

              <legend id='NleDb'><style id='NleDb'><dir id='NleDb'><q id='NleDb'></q></dir></style></legend>
                <tbody id='NleDb'></tbody>

                  <bdo id='NleDb'></bdo><ul id='NleDb'></ul>
                  本文介绍了Struts 2 #{} 在 Netbeans 7.3 中给出编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Netbeans 7.3,并创建了一个 maven Struts 2.3 项目.

                  I'm using Netbeans 7.3 and I've created a maven Struts 2.3 project.

                  其他一切似乎都很好,除了我用 JSP 编写类似这样的东西:

                  Everything else seems fine, except when I write in JSP something like this :

                  <s:select list="#{'-1':'All Activity','0':'Posts Only','1':'Trades Only'}"
                  

                  以上代码在 JSP 中出现错误.虽然它曾经在 6.9 中运行良好对我来说似乎是一个错误.任何帮助将不胜感激.

                  The above code gives error in JSP. Although it used to work fine in 6.9 Seems like a bug to me. Any help would be really appreciated.

                  我已经在插件页面上发表了关于它的评论,虽然在我看来并不像插件问题,因为 maven 与 NB 插件 AFAIK 无关.

                  I've already posted a comment about it on the plugin page, although doesn't seem to me like a plugin issue or so, since maven has nothing to do with NB plugins AFAIK.

                  推荐答案

                  在上面的代码中,列表是使用 OGNL 表达式填充的.这是有效的表达式,但 IDE 并不总是支持它,因为 OGNL 版本和插件版本可能不匹配.您始终可以将其排除在验证之外.但这不是主要问题,您可以不注意.

                  In the code above the list is populated using OGNL expression. That is valid expression, however IDE not always has support it since the OGNL version and plugin version may mismatch. You can always exclude it from validation. But it's not the major problem and you could not pay attention to it.

                  此示例使用相同的集合,看起来不错

                  This example uses the same collection and looks fine

                  <s:select list="#@java.util.LinkedHashMap@{'-1':'All Activity','0':'Posts Only','1':'Trades Only'}"/>
                  

                  这篇关于Struts 2 #{} 在 Netbeans 7.3 中给出编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:无法加载 bean:类型:org.apache.struts2.views.gxp.inject.InjectedObj 下一篇:如何在 Struts2 中提交表单的 URL 中传递参数

                  相关文章

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

                    <legend id='2rJxj'><style id='2rJxj'><dir id='2rJxj'><q id='2rJxj'></q></dir></style></legend>

                    • <bdo id='2rJxj'></bdo><ul id='2rJxj'></ul>

                    <small id='2rJxj'></small><noframes id='2rJxj'>