JSP : JSTL's tag

后端 未结 5 885
迷失自我
迷失自我 2020-11-29 16:22

Writing a JSP page, what exactly does the do? I\'ve noticed that the following both has the same result:

The person\'s na

5条回答
  •  误落风尘
    2020-11-29 16:35

    c:out escapes HTML characters so that you can avoid cross-site scripting.

    if person.name =

    the script will be executed in the second case, but not when using c:out

提交回复
热议问题