Java Expression works in JSTL tags but not in Struts 2 tags of a JSP page

前端 未结 1 1462
盖世英雄少女心
盖世英雄少女心 2021-01-26 05:01

I am using \"JSTL\" ans \"struts2\" in my project.I am trying set a value in the scope using JSTL and Struts2 tag as follows,

1条回答
  •  盖世英雄少女心
    2021-01-26 05:52

    Struts tags doesn't allow scriptlects in the tag's attributes. But you can try

    <%=b%>
    

    0 讨论(0)
提交回复
热议问题