jsp EL表达式原样输出问题

jsp原样输出,比如${message},输出也是${message}。

需要在<%@ page......%>里面添加isELIgnored="false"。

参考:https://blog.csdn.net/wolf_soul/article/details/50388005,isELIgnored="false"表示在本jsp中使用el表达式,否则表示不使用el表达式。servlet2.4或者更新的版本,isELIgnored默认值为false,而2.3或者 更早的版本isELIgnored默认值为true。就导致了出现EL表达式无效的情况。 

 

posted @ 2018-03-27 19:31  银河末班车  阅读(1043)  评论(0编辑  收藏  举报