What does the dollar curly brackets ${} mean in JSP?

前端 未结 3 1466
走了就别回头了
走了就别回头了 2021-02-07 00:50

What does ${} means in JSP? For example,


    

        
3条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 01:32

    It is Expression Language. Before EL evolved, the same purpose was achieved by using scriptlets <%=..%>The primary purpose of using this syntax is to avoid scriptlets in jsp. Scriptlets and the enclosed java code is considered bad practise because jsps are not 'supposed' to have java code. At least that is the theory.

提交回复
热议问题