JBoss AS 4.2.2中不评估EL表达式 [英] EL expressions are not evaluated in JBoss AS 4.2.2
问题描述
EL表达式.我已声明web.xml
符合Servlet 2.4规范.
EL expressions are not evaluated in JBoss AS 4.2.2. I have web.xml
declared conform the Servlet 2.4 spec.
<web-app id="WebApp_ID" 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">
要使EL在JBoss AS 4.2.2中工作,还需要做些什么?
What needs to be done more in order to get EL to work in JBoss AS 4.2.2?
推荐答案
您的web.xml
根声明看起来不错.
Your web.xml
root declaration looks fine.
其他排除原因:
-
确保您的Web应用程序
/WEB-INF/lib
中没有像servlet-api.jar
,jsp-api.jar
,el-api.jar
等这样的servlet/container品牌/版本的Servlet/JSP/EL库.初学者从那里的未知资源中删除这些文件的副本,以克服编译问题,
Ensure that you don't have Servlet/JSP/EL libraries of a different servletcontainer make/version in your webapp's
/WEB-INF/lib
likeservlet-api.jar
,jsp-api.jar
,el-api.jar
, etc. More than often starters drop a copy of those files from unknown resource in there to overcome compilation problems, but that's the wrong approach!
确保您的JSP中没有<%@page isELIgnored="true" %>
.
Ensure that you don't have <%@page isELIgnored="true" %>
in your JSPs.
确保您的web.xml
中没有以下内容:
Ensure that you don't have the following in your web.xml
:
<jsp-config>
<el-ignored>true</el-ignored>
<jsp-config>
这篇关于JBoss AS 4.2.2中不评估EL表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!