EL expressions in JSP question of invalidity

2010-04-28  来源:本站原创  分类:Java  人气:228 

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.

  • EL expressions in JSP question of invalidity 2010-04-28

    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 = "htt

  • JSP EL expressions invalidity of the page 2010-05-04

    Previously done with the WSAD wizard, can resolve in the JSP page to the EL expression, of course, the premise is JSP2.0 circumstances. Today encountered a strange problem. Just download Eclipse3.3 + MyEclipse6.0 experience the process, they encounte

  • JSP EL expressions in 2010-07-11

    1, JSP EL language definition EL (Expression Language) Objective: To make JSP easier to write. Expression language inspired by ECMAScript and the XPath expression language, which provides simplified expressions in the JSP in the method. It is a simpl

  • JSP EL expressions can not be used 2011-05-01

    Can not use the JSTL is a very tangled problem. Especially for the EL expressions are used to people who no doubt is a painful thing more eggs Entangled for a long time today, finally solved the problem. For the low version of MyEclipse to add EL exp

  • JSTL and EL expressions 2010-03-27

    Session of the values obtained <c:out value="${sessionScope.user.userId}"> </ c: out> <br> <c:out value="${user.userLoginName}"> </ c: out> <br> <s:property value="#session.user.userId"/

  • EL expressions formatted date 2009-04-09

    In the EL expression to show "yyyy-MM-dd" format Date: Use formatting tags <fmt:> An import on the page <% @ taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt"%> 2 Format Date <fmt:formatDate value=

  • EL expressions on the issue of failure 2009-12-07

    Today started a small system, used in EL, to find the previous project, copy over, actually found $ (xxx) failure The server is using tomcat6.0. google one afternoon, summing up the reasons for problems and solutions. First of all now JSP2.0 already

  • EL expressions use (transfer) 2010-06-10

    EL expression is always enclosed with braces, and in front of a dollar sign ($) prefix: $ (expression). Representation of the first named variable or type an implicit object, either a scope (page scope, request scope, session scope or application sco

  • Custom creation and use of EL expressions 2010-07-18

    EL expressions are often used in J2EE programming things, so today, according to books written specifically again, hope has been useful to others, above all, the definition of JAVA method Class name is public, the method is defined as public static p

  • zk EL expressions and custom functions for use 2010-07-21

    Can use the function list will be listed last, first, we use an example to learn how to use the EL function with a custom EL function Here is an international example of the beginning of a paragraph in the code Code title = "$ (c: l ('zkway.title'))&

  • jstl does not support EL expressions solution 2010-08-03

    Today, old newspaper with <c:out> label does not support the expression of error, Mangliaobantian finally found the problem when building Dynamic web project item selected Dynamic web module version 2.5, the default jsp page is not allowed to use EL

  • JSTL and EL expressions What is the relationship between 2010-12-07

    EL concepts JSTL with EL expressions are generally used together to achieve does not appear in the jsp java code. So let's learn EL expression EL mainly used to find the scope of the data, and then perform simple operations on them; it is not a progr

  • JAVA EE5 (J2EE5) support for EL expressions 2010-12-27

    Let JAVA EE5 (J2EE5) support EL expressions collection JAVA EE5 default does not support EL expressions. One way: In the top of each jsp file add the following code: <% @ Page language = "java" import = "java.util .*" pageEncoding =

  • EL expressions use the 2009-12-30

    The WEN_INFO a folder under the new tlds, into which the fn.tld EL expression value to the space: The introduction of: <% @ taglib uri = "http://java.sun.com/jsp/jstl/functions" prefix = "fn"%> To achieve $ (fn: trim (success))

  • EL expressions - custom function 2010-03-28

    Expression language can be used in addition to the basic operators, but also can use a custom function. By using a custom function, increased expression language functions. EL expression function, the main function is to complete the modification of

  • EL expressions can not resolve the problem 2010-04-01

    Long time did not move the items, today launched a sudden there are analytical expressions can not, then check friends online information, do not trouble to find better friends, in the JSP page add the following sentence on the line: <% @ Page isELIg

  • "Zhuanzhai> EL expressions error attribute items does not accept any expressions 2010-03-24

    There are 2 solutions 1, the <% @ taglib prefix = "c" uri = "http://java.sun.com/jstl/core"%> Change Java code <% @ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%> <% @ taglib prefix =

  • EL expressions turn decimal integer division 2010-07-29

    If the EL expression $ (10 / 3), then the result of his output is a small number. Most of the time we only need integer on it. The following is the decimal integer transfer method: <fmt:formatNumber type="number" value="${10/3}" max

  • jstl el expressions to judge whether the collection is empty and the loop through output 2010-07-25

    <table width="100%" border="0" align="center"> <tr> <td width="3%" height="26"> <input type="checkbox" name="selectall"/> </ td> <td width="18%&quo

  • Openi BI platform based on open source data warehouse system design and development 2010-10-08

    Now we compare the recognized business intelligence system is divided into reporting, OLAP, data warehousing, data mining, and five large ad hoc query, business intelligence system itself is only a relatively new concept, perhaps with the development