我用tomcat6
测试最简单的${ "hello "}
页面显示${ "hello "},而不是hello,好奇怪
问题跟Struts没有关系,也用不着加 <%@page isELIgnored= "flase "%>
你看看你的web.xml,有没有加xmlns属性:
你可以从tomcat安装目录下\conf\web.xml中copy以上一段到你自己的web-app属性。
测试最简单的${ "hello "}
页面显示${ "hello "},而不是hello,好奇怪
问题跟Struts没有关系,也用不着加 <%@page isELIgnored= "flase "%>
你看看你的web.xml,有没有加xmlns属性:
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
你可以从tomcat安装目录下\conf\web.xml中copy以上一段到你自己的web-app属性。
<web-app 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"
version="2.4">