<%
String aaa = "123";
%><body>
******
<input name="boxName" type="button"/>
</body>*****那里要怎么引用核心标签库 像 if (aaa==123)之类的,使得下面的<input/>生效?
aaa是当前定义的变量,用何种方法,才能让我使用逻辑判断????在线等
String aaa = "123";
%><body>
******
<input name="boxName" type="button"/>
</body>*****那里要怎么引用核心标签库 像 if (aaa==123)之类的,使得下面的<input/>生效?
aaa是当前定义的变量,用何种方法,才能让我使用逻辑判断????在线等
String aaa = "123";
if(aaa == 123){
%><body>
******
<input name="boxName" type="button"/>
</body> <%
}
%>
<%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%
String flag = "123";
request.setAttribute("flag", flag);
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>index.jsp</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
</head> <body>
<c:if test="${flag=='123'}">
<input name="boxName" type="button" />
</c:if>
</body>
</html>
就用<logic:equal>,去google用法……