How to get JSP scriptlet value in struts tag

前端 未结 2 1891
时光说笑
时光说笑 2021-01-18 19:24

Here is my code:

<% request.setAttribute(\"lcItem\", \"Hello\"); %>

If I do as following, I\'m not getting the value:



        
2条回答
  •  孤城傲影
    2021-01-18 20:20

    This works perfectly..

    <%       
       request.setAttribute("lcItem", LeftContentItem);
    %>
    
    
    

    Note: According to the Scope we use we should specify the #request .. etc

提交回复
热议问题