为什么isELIgnored设置成true才支持el表达式 网上都说在jsp页面加上<%@ page isELIgnored="false"%>就支持el表达式了为什么我的必须设置成<%@ page isELIgnored="true"%>才支持 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page language="java" import="java.util.*" pageEncoding="gb2312"%><%@ page isELIgnored="false" %> <%@ taglib uri="/security" prefix="security"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <% String path = request.getContextPath(); response.setHeader("Cache-Control", "no-cache"); //Forces caches to obtain a new copy of the page from the origin server response.setHeader("Cache-Control", "no-store"); //Directs caches not to store the page under any circumstance response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale" response.setHeader("Pragma", "no-cache"); //HTTP 1.0 backward compatibility request.setAttribute("path",path); %> <title>导航菜单</title> <meta http-equiv="Content-Type" content="text/html" ; charset="gb2312"> <link href="css/default.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript" src="js/showLeft.js"></script> </head> <body class="left_body_20070514"> <!-- img id -- changeMenu -- id--> <div class="left_title"> 用户: ${ userinfo.accountno} </div> <c:forEach items="${menulist}" var="tmp" varStatus="varsta"> <security:restrictField ruleCode="${tmp[0]}"> <c:if test="${tmp[4]=='M' }"> <c:if test="${varsta.count !=1}"> </ul> </div> </c:if> <div class="left_title" onClick="changeMenu('Menu${varsta.count }')" style="cursor:pointer;"> <img id='imgMenu${varsta.count }' src="images/LedOff.ico" /> ${tmp[1] } </div> <div class="left_txt" id="divMenu${varsta.count }" style="display:none"> <ul class="c"> </c:if> <c:if test="${tmp[4]!='M'}"> <li > <a href='${tmp[7] }' target='right'> <img src="images/16.gif"/><br>${tmp[1] }</a> </li> </c:if></security:restrictField> </c:forEach> <c:if test="${countsize!=0}"> </ul> </div></c:if> <div class="left_title" onClick="quitsys('<%=request.getServerName() +":"+ request.getServerPort()+path %>')" style="cursor:pointer"> 退出系统 </div> 我的是false 求一本struts2的书 多线程 Jsp分页问题? 求助,关于会议管理的MIS系统 本人想把一下简单的网页语法转化成vc语句,请大家解释一下美步骤的语法和作用。 送分 急用!! linux+jsp+中文问题 ★☆★☆★★在线统计的问题,心急如焚!!向高手求救!!在线等!! 页面自动填写表单及select选择问题 只有50分了全部拿出, 关于jsp界面中下拉的动太获取问题!!!急 servlet-api.jar java 调用oracle存储过程
<%@ page isELIgnored="false" %>
<%@ taglib uri="/security" prefix="security"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
String path = request.getContextPath();
response.setHeader("Cache-Control", "no-cache");
//Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control", "no-store");
//Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0);
//Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma", "no-cache");
//HTTP 1.0 backward compatibility
request.setAttribute("path",path);
%>
<title>导航菜单</title>
<meta http-equiv="Content-Type" content="text/html" ; charset="gb2312">
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript"
src="js/showLeft.js"></script>
</head>
<body class="left_body_20070514">
<!--
img id -- changeMenu -- id
--> <div class="left_title">
用户:
${ userinfo.accountno}
</div>
<c:forEach items="${menulist}" var="tmp" varStatus="varsta">
<security:restrictField ruleCode="${tmp[0]}">
<c:if test="${tmp[4]=='M' }">
<c:if test="${varsta.count !=1}">
</ul>
</div>
</c:if>
<div class="left_title" onClick="changeMenu('Menu${varsta.count }')" style="cursor:pointer;">
<img id='imgMenu${varsta.count }' src="images/LedOff.ico" /> ${tmp[1] }
</div>
<div class="left_txt" id="divMenu${varsta.count }" style="display:none">
<ul class="c">
</c:if>
<c:if test="${tmp[4]!='M'}">
<li >
<a href='${tmp[7] }' target='right'>
<img src="images/16.gif"/><br>${tmp[1] }</a>
</li>
</c:if></security:restrictField>
</c:forEach>
<c:if test="${countsize!=0}">
</ul>
</div></c:if>
<div class="left_title" onClick="quitsys('<%=request.getServerName() +":"+ request.getServerPort()+path %>')"
style="cursor:pointer">
退出系统
</div>
我的是false