<%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core" %>
<%
request.setAttribute("abc", "I'm abc");
%>
/c:out
<%
String st=request.getAttribute("abc").toString();
out.print(st);
%>
/c:out
上面的代码中输出如下:
hello,word I'm abc ${abc}
请问${abc}为什么不会被解析成I'm abc