JSP中使用EL表达式 ieELIgnoed问题
来源:互联网 发布:影梭 本地端口 编辑:程序博客网 时间:2024/05/21 09:38
在JSP中使用EL表达式时,需要标识 isELIgnored="false",不然EL表达式是作为普通的字符串来编译的,而在页面上也不会显示出正确的值。
<%@ 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">
在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())); }
- JSP中使用EL表达式 ieELIgnoed问题
- jetty中使用jsp el表达式问题
- JSP中使用EL表达式
- Jsp中使用EL表达式不解析(无效)的问题
- JSP中EL表达式无效的问题
- JSP中EL表达式无效问题
- JSP中EL表达式无效的问题
- JSP中EL表达式无效的问题
- jsp中EL表达式原样输出问题
- JSP中EL表达式无效的问题
- JSP中EL表达式无效的问题
- jsp中EL表达式不起作用的问题
- JSP中EL表达式无效的问题
- jsp中$、EL表达式不起作用的问题
- jsp中EL表达式不起作用的问题
- JSP页面EL表达式使用的问题
- JSP中不能使用EL表达式
- Jsp中EL表达式的使用
- 集中采购业务的实现
- CRC校验原理
- fd_set函数学习
- 后勤与FI集成的几个配置地方
- CCS3.3利用profile对程序的运行时间进行统计
- JSP中使用EL表达式 ieELIgnoed问题
- 头文件string,string.h,cstring的器区别和联系
- SAP销售返利(回扣)实现方法
- Android中为图标加上数字--用于未读短信数提醒等
- 小工具-销售订单概览屏幕的特性显示
- MyEclipse快捷键
- shell 返回值处理
- GridView 分页
- 关于ASP.NET页面与代码分离