Struts2中JSTL标签不起作用解决办法

1.设置某个jsp页面使用el表达式,需要在jsp页面加上(控制单个页面)
<%@ page isELIgnored="false"%>  //我设置了这点就可以了,

2.看你的web.xml文件中头的引用应该是 2.4.xsd

<web-app id="WebApp_9" version="2.4" xmlns="http://Java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

 


${requestScope.hello}

posted @ 2018-11-17 21:52  斌凯  阅读(284)  评论(0编辑  收藏  举报