这是我的行动课
public Iterator<CgConsultant> getSearchresult() {
List<CgConsultant> list =userSearch.getConsultantMatches(searchstring);
System.out.println("The size of the resutl list:"+list.size());
Iterator<CgConsultant> iterator = list.iterator();
CgConsultant obj;
while(iterator.hasNext()){
obj = (CgConsultant)iterator.next();
System.out.println(obj.getUsername());
System.out.println(obj.getFirstName());
System.out.println(obj.getLastName());
}
return iterator;
}
我必须在jsp中填充数据并在jsp中显示
我得到了返回状态,但是如何填充数据并显示它..
这是我的jsp
<head>
<title><fmt:message key="signup.title"/></title>
<meta name="heading" content="<fmt:message key='signup.heading'/>"/>
</head>
<body>
<h1> Search Complete</h1>
<h2> Details are..</h2><br>
<s:property value="Searchresult"/>
</body>
</html>
请指定任何建议..