EL expressions in JSP question of invalidity

Determined using Servlet / JSP version, see the beginning of the web.xml, if there is the following, that is a Servlet 2.4 / JSP 2.0.

1. <Web-app version = "2.4"
2. Xmlns = "http://java.sun.com/xml/ns/j2ee"
3. Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
4. Xsi: schemaLocation = "http://java.sun.com/xml/ns/j2ee
5. Http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
If you have the following that is a Servlet 2.3 / JSP 1.2.

1.2. "- / / Sun Microsystems, Inc. / / DTD Web Application 2.3 / / EN"
1. "Http://java.sun.com/dtd/web-app_2_3.dtd">

By default, Servlet 2.3 / JSP 1.2 does not support EL expressions, and Servlet 2.4 / JSP 2.0 support.

If it is in the Servlet 2.3 / JSP 1.2, will add the following JSP page at the beginning of a code.

1. <% @ Page isELIgnored = "false"%>
If it is in the Servlet 2.4 / JSP 2.0, the code checks whether the above sentence into isELIgnored set of true, there are in the web.xml, whether jsp-config tag inside jsp-property-group labels inside the el - ignored set of true.

The ultimate solution is that, in MyEclipse Zhongjian webproject /, the use of j2ee 1.4 Selected jstl increased to 1.1
If you are using j2ee 1.5 release system, jstl is impossible to identify, to re-release to the release of the lib in the web system. If it is to use struts, or struts 2 when the label or when jsf, it can use j2ee 5.

分类:Java 时间:2010-04-28 人气:221
blog comments powered by Disqus


  • java regular Java: Web Application timing tasks to achieve an easy way to (switch) 2010-10-15

    java regular Java: Web Application timing tasks to achieve an easy way to (switch) WEB application in the regular task to achieve an easy way to In web mode, if we are to achieve on a regular basis to perform certain tasks, then, in addition to quart

  • google sitebricks learning experience - the most simple web application 2010-12-15

    Introduction Sitebricks is still in beta, it is a new Java ™ Web application framework. You may want to ask: "Why do I need another Web Framework?" Through Google Sitebricks, you can quickly build a maintenance or operation by another Web applic

  • Back Tomcat6 of Administration Web Application 2010-03-31

    Back Tomcat6 of Administration Web Application The Tomcat6.x install configuration Tomcat5.5.28 in the Administration Web Application source: http://bbs.cnpp.info/thread-137-1-1.html Download: http://tomcat.apache.org/download-55.cgi 1, after downloa

  • tomcat three ways to deploy web application 2010-03-15

    Reprinted: http://hi.baidu.com/xiaoba130/blog/item/493daad003f51e319a5027a4.html 1, directly into the Webapps directory Tomcat's Webapps directory is the default Tomcat application directory, when the server starts, it will load all the directory app

  • Tomcat Web Application Deployment Methods 2010-06-02

    Tomcat Web Application Deployment Methods Reference: http://blog.csdn.net/willowind/archive/2010/03/22/5404711.aspx Deployed in the Tomcat Java Web applications in two ways: static and dynamic deployment of the deployment. Below $ CATALINA_HOME refer

  • Web application firewall? Web Security Gateway? 2010-11-14

    Original http://netsecurity.51cto.com/art/201007/210932.htm Whether it is Web-based application system or a Web site, they are faced with a variety of security threats and sources of uncertainty. Some of them have been found, and has an identifiable

  • Tomcat applications management, Tomcat Web Application Manager 2010-09-12

    And today the Tomcat Web Application Manager. Good use, do not restart the Tomcat service every time, and as long as reload look just fine. Tomcat Web Application Manager allows you to stop, restart, remove and re-deploy a web application. An applica

  • Java Web Application Server Comparison 2010-12-30

    Transfer from: http://special.e800.com.cn/070902/ Case] [Editor Tomcat is an open source, run servlet and JSP Web application software application software based on Java Web container. Subprojects by the Apache-Jakarta Tomcat support from the open so

  • OpenJWeb (1.6) Java Web Application Development Platform Express Technical White Paper 2009-06-07

    Chinese open-source OpenJWeb Organization ( http://blog.csdn.net/baozhengw ) Powerise Suzhou Technology Co., Ltd. ( http://www.cmissoft.com ) QQ: 29803446 Msn: baozhengw999@hotmail.com Email: baozhengw@163.com Contact: Mr. Wang Mobile: 13651070328 Co

  • FreeMarker in struts2.0, JAVA, web application examples [change] 2009-11-08

    FreeMarker Overview FreeMarker is a template engine generates text output based on the template a common tool for the preparation of the use of pure Java Template + data model = output FreeMarker is a very good template engine, the template engine ca

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.398 (s). 12 q(s)