Question about using EL expression ieelignoed in JSP

Source: Internet
Author: User

When using the El expression in JSP, You need to identify iselignored = "false". Otherwise, the El expression is compiled as a normal string and the correct value is not displayed on the page.


<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><c:out value="${param.para1}" default="hello world">

You can see this in the apache-tomcat-6.0.35-src:

protected String[] generateJava() throws Exception {        String[] smapStr = null;        long t1, t2, t3, t4;        t1 = t2 = t3 = t4 = 0;        if (log.isDebugEnabled()) {            t1 = System.currentTimeMillis();        }        // Setup page info area        pageInfo = new PageInfo(new BeanRepository(ctxt.getClassLoader(),                errDispatcher), ctxt.getJspFile());        JspConfig jspConfig = options.getJspConfig();        JspConfig.JspProperty jspProperty = jspConfig.findJspProperty(ctxt                .getJspFile());        /*         * If the current uri is matched by a pattern specified in a         * jsp-property-group in web.xml, initialize pageInfo with those         * properties.         */        if (jspProperty.isELIgnored() != null) {            pageInfo.setELIgnored(JspUtil.booleanValue(jspProperty                    .isELIgnored()));        }

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.