1.對于JSTL先了解下:
sevlet2.4 jsp2.0規范 需使用jstl1.1 tomcat5.X
:使用標簽需在jsp頭部引用<%@ taglib prefix="c" uri="
sevlet2.5 需使用jstl1.2 tomcat6.X
<%@ page contentType="text/html;charset=UTF-8" language="java"
isELIgnored="false" import="java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
isELIgnored="false"表示使用EL表達式
EL表達式可參見:http://www.cnblogs.com/hya1109/archive/2007/10/02/912947.html
2.在google app engine中使用JSTL,需在jsp中加入:
<%@
isELIgnored="false" %>
<%@
taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>(這句代碼在myeclipse中會報錯不用管)
因為在web.xml中其實sevlet2.5
${article.title}====article.getTile();