<%@ page isELIgnored="false"%>的作用
2014-09-09 18:39
423 查看
JSP 2.0的一个主要特点是它支持表达语言(expression language)。JSTL表达式语言可以使用标记格式方便地访问JSP的隐含对象和JavaBeans组件,JSTL的核心标记提供了流程和循环控制功能。***标记也有自定义函数的功能,因此基本上所有seriptlet能实现的功能都可以由JSP替代。在JSP 2.0中,建议尽量使用EL而使JSP的格式更一致。
在web.xml的<jsp-property-group>中可以控制一组JSP是否使用EL,在每个JSP中也可以指定是否该JSP使用EL。在page directive中的isELIgnored属性用来指定是否忽略。格式为:
<%@ page isELIgnored="true|false"%>
如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000 % 20}</p>在isELIgnored="true"时输出为${2000 % 20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。
源:http://blog.163.com/09zzy@126/blog/static/7119766520103300619547/
在web.xml的<jsp-property-group>中可以控制一组JSP是否使用EL,在每个JSP中也可以指定是否该JSP使用EL。在page directive中的isELIgnored属性用来指定是否忽略。格式为:
<%@ page isELIgnored="true|false"%>
如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000 % 20}</p>在isELIgnored="true"时输出为${2000 % 20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。
源:http://blog.163.com/09zzy@126/blog/static/7119766520103300619547/
相关文章推荐
- <%@ page isELIgnored="false"%>的作用
- <%@ page isELIgnored="false"%>的作用
- <%@ page isELIgnored="false"%>的作用
- EL表达<%@page isELIgnored="false"%>问题
- <%@ page isELIgnored="false"%>的作用
- <%@ page isELIgnored="false"%>
- EL表达<%@page isELIgnored="false"%>问题
- <%@ page include=""%> 和<jsp:include flush="true" page=""></jsp:include>两者的区别
- <jsp:include page="">与<&@ include file="">的区别
- <%@page contentType="text/html;charset=gbk"%>与<meta http-equiv="Content-Type" content="text/html; ch
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>意义
- <%@ include file=""%>与<jsp:include page=""/>区别
- <%@ include file=""%> 和<jsp:include page=""/>两者的区别
- <jsp:directive.page import=""/>的用法和解释
- <jsp:include page=""> 与<%@ include file=""%>理解
- <!-- <s:action name="navAllFront" namespace="/nav" executeResult="true" flush="false"></s:action>
- <%@ include file=""%>与<jsp:include page=""/>区别
- <%@ include file=""%>与<jsp:include page=""/>区别
- <jsp:include page="">和<%@include page=""%> 标签学习
- <location allowOverride="false"> ??