jerryai8 2014-05-29 03:35 采纳率: 0%
浏览 2321

JSTL 中无法显示${xxx} 的结果

<%@ 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

  • 写回答

1条回答 默认 最新

  • asz5751200 2014-05-29 03:43
    关注

    结贴..........实验下

    评论

报告相同问题?