//NewsAction.java
/**
* 显示
* @return
*/
public String showNews(){
String string = "";
try {
list = newsService.queryNews("from com.sinosoft.canshishi.pojo.News", null, number, pageSize);
string = "showNews";
} catch (Exception e) {
e.printStackTrace();
string = "error";
}
return string;
}
<!-- shouNews.jsp -->
<c:forEach items="${list}" var="list">
<!-- ${list.maintitle } <br/> -->
<c:out value="${list.maintitle}"></c:out>
</c:forEach>
2012-5-14 9:24:45 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTag
------解决方案--------------------------------------------------------
缺少jstl.jar