0
我是jstl中的新人。我在设置变量后试图打印一些值。 下面是我写的代码。但它的输出为$ {salary}。需要澄清JSTL <c:set>标签
这里我的代码:
<c:set var="salary" scope="session" value="${2000*2}"/>
<c:out value="${salary}"/>
请帮助。
下面是我的JSP文件的内容..
<%@ taglib uri="java.sun.com/jsp/jstl/core"; prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:set var="salary" scope="session" value="${2000*2}"/>
<c:out value="${salary}"/>
</body>
</html>
您是否包含标准jstl库? – reporter
如果您在会话之间更改范围,会发生什么情况? – reporter