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.
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of EL expressions in JSP question of invalidity

  • myeclipse plugin

    myeclipsePlug-ins? 1.tomcatPlugin(Start tomcat ):http ://www.sysdeo.com/eclipse/tomcatPlugin.html,2.xVersions of eclipse 3 version 2 .1Version doesn't work. 2.Lomboz(Development of jsp program ,jspDynamic prompt, debugging ):http://forge.objectweb.org/pro

  • hibernate generic generic DAO

    package org.lzpeng.dao; import java.io.Serializable; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.criterion.Criterion; import org.springside.modules.orm.hibernate.Page; /** * * @version 2009-1-10 *

  • Servlet brief introduction

    Servlet brief introduction: Servlet is a small application server Are used to complete the B / S architecture, the client requests the response to treatment Platform independence, performance, able to run thread Servlet API for Servlet provides the s ...

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

  • Hibernate secondary cache

    Hibernate cache: 2-bit cache, also known as process-level cache or SessionFactory level cache, secondary cache can be shared by all of the session Cache configuration and the use of: Will echcache.xml (the document code in hibernate package directory ...

  • Hibernate's lazy strategy

    hibernate Lazy strategy can be used in: <class> tag, it can be true / false Tags can <PROPERTY> values true / false type of necessary tools to enhance <set> <list> can tag values true / false / extra <many-to-one> <on ...

  • Java Technology wishing cow needed 25 points of study

    1. You need to master the object-oriented analysis and design (OOA / OOD), involving patterns (GOF, J2EEDP) as well as the integrated model. You should understand the UML, especially class, object, interaction and statediagrams. 2. You need to learn basic

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries