JSTL入门

在页面最上方引入 <%@taglib url="http://java.sun.com/jsp/jstl/core" prefix="c" %> -------------------- if语句 <% request.setAttr("b", 10); %> b的值大于8 --------------------- foreach语句 <% request.setAttr("arr", new int[]{7,8,9,10}); %> i的值是:${i}
posted @ 2014-08-14 00:52  Nophy  阅读(124)  评论(0)    收藏  举报