How can I concatenate a string within a loop in JSTL/JSP?

后端 未结 4 2177
生来不讨喜
生来不讨喜 2020-12-15 03:36

  \" />
         


        
4条回答
  •  余生分开走
    2020-12-15 04:22

    define a String variable using the JSP tags

    <%!
    String test = new String();
    %>
    

    then refer to that variable in your loop as

    
    test+= whaterver_value
    
    

提交回复
热议问题