display html via JSTL in Spring MVC

后端 未结 1 476
庸人自扰
庸人自扰 2020-12-18 23:43

I have something like

model.addAttribute(\"msg\", \"akhil\");
return \"index\";

in my Controller.

In my view pa

1条回答
  •  情歌与酒
    2020-12-19 00:05

    This is because uses XML escaping for the characters '<' and >.

    Set the option escapeXml=false of c:out to output your text in bold letters:

    
    

    0 讨论(0)
提交回复
热议问题