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

前端 未结 1 1463
盖世英雄少女心
盖世英雄少女心 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

    <s:set var="test3"><%=b%></s:set>
    
    0 讨论(0)
提交回复
热议问题