|
<%@ page contentType="text/html;charset=GB2312" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <head> <title>adf</title> </head> <body> <c:if test="${param.username=='Admin'}" var="condition" Scope="page"> hello Admin <c:if><br> resuot:${condition} </body> </html> |
|
|
|
我是装了tomcat5.0.16,支持jstl的
|
|
|
大家都不帮我呀, !!!
|
|
|
param.username.equals("Admin")试试?
|
|
|
我试下,谢谢
|
|
|
不行呀,
|
|
|
为什么下面这段又行呢, 我实在是找不出来差距呀
<%@ page contentType="text/html;charset=GB2312" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <head> <title>CH7 - Core_if.jsp</title> </head> <body> <h2><c:out value="<c:if> 的用法" /></h2> <c:if test="${param.username=='Admin'}" var="condition" scope="page"> 您好Admin先生 </c:if></br> 执行结果为:${condition} </body> </html> |
|
|
</c:if>
<c:if>的区别! 晕,我也常碰见这样的问题,不过错误多了,也就无所谓的了! |
|