关于JF框架中的空值处理

JF框架上中的经典用法
public PageIterator getAllUsers(int start, int count) throws Exception {
String GET_ALL_ITEMS_ALLCOUNT = "select count(1) from fd";
String GET_ALL_ITEMS = "select fdid from fd order by fdid desc";
List queryParams=new ArrayList();
return pageIteratorSolverOfUser.getPageIterator(GET_ALL_ITEMS_ALLCOUNT,
GET_ALL_ITEMS, queryParams, start, count);
}
我们因为业务需要,在xxListAction中加了参数调用。
public PageIterator getAllUsers(String query,int start, int count) throws Exception
如果有参数正常返回数值时,一切正常,但是如果返回无值的话。页面出错。
我们查了查JF使用文档。里面的方法是使用EvenModel em, em.setError来处理. 然后在页面<html:errors/>,这个确实在CRUD中工作正常,但是在getAllUsers中应该如何处理呢?我们不知道如何嵌入EventModel这个参数.
谢谢各位回复. 祝虎年大顺.
[该贴被webheat于2010-02-28 17:26修改过]

2010年02月28日 17:23 "webheat"的内容
但是如果返回无值的话。页面出错

你做个判断,如果返回无值,就new PageIterator()新的空的PageIterator返回即可。