Struts 2 #{} giving compilation error in Netbeans 7.3

后端 未结 1 1919
傲寒
傲寒 2020-12-11 13:49

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

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

&l         


        
相关标签:
1条回答
  • 2020-12-11 14:19

    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'}"/>
    
    0 讨论(0)
提交回复
热议问题