JBoss AS 4.2.2中不评估EL表达式 [英] EL expressions are not evaluated in JBoss AS 4.2.2

查看:35
本文介绍了JBoss AS 4.2.2中不评估EL表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.jarjsp-api.jarel-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 like servlet-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆