private Cpinfo entity;        @SuppressWarnings("unchecked")
public void setCpList(List cpList) {
this.cpList = cpList;
} @SuppressWarnings("unchecked")
public List getCpList() {
return cpList;
}        // find
@SuppressWarnings("unchecked")
public String cpFindByid() throws Exception {
setCpList((List) serivce.find(entity));

  System.out.println(cpList.size());//注这里控制台可以显示出结果,也就是有数据,而页面没有
  
return "rs";
}
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> <title>My JSP 'find.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page"> </head> <body>
<s:iterator value="#request.cpList" id="cp">
<li>
<s:property value="#cp.name" />
</li>
<li>
<s:property value="#cp.info" />
</li>
<li>
<s:property value="#cp.title" />
</li>
<li>
<a href='cpdel?entity.id=<s:property value="#cp.id" />'>删除 </a>
</li>
<li>
<a href='cpFindByid?entity.id=<s:property value="#cp.id" />'>修改</a>
</li>
</s:iterator> </body>
</html>
Dao层代码  不知道和类型有关系没
@SuppressWarnings("unchecked")
public List find(Object entity) {
return this.findByExample(entity);
}不知道问题在哪里
JSP页面代码 应该也没错好像 我可以用他查询出 所有数据不知道现在什么问题了郁闷