JSP/JSTL using or not using tags

前端 未结 3 783
旧时难觅i
旧时难觅i 2020-12-19 06:42

i\'m helping develop a java jsp jstl based web service and all dynamic objects are being inserted using ${object.foo} and i was wondering if it made a differenc

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 06:57

    In previous versions of jsp it was not possible to directly use el expressions in text content, you had to use c:out. This is no longer neccessary, using el expressions directly for output creates a much less cluttered jsp in my opinion. The c:out tag still has its uses if you need to control output escaping via the escapeXml attribute.

提交回复
热议问题