日期:2014-05-17 浏览次数:21092 次
public String execute() throws Exception {
Map request = (Map) ActionContext.getContext().get("request");
if ( this.getUsername_c().equals("") || this.getCustomerid_c().equals("") )
{
request.put("list", service.findAll());
} else {
allRecorders = service.findUsersByUsernameCustomerid_count( this.getUsername_c() , this.getCustomerid_c() ) ;
request.put("currentPage",new Integer(currentPage)) ; //当前页
request.put("allRecorders",new Integer(allRecorders)) ;//总记录总数
request.put("list", service.findUsersByUsernameCustomerid( this.getUsername_c() , this.getCustomerid_c() ,this.getCurrentPage(),lineSize));
}
return SUCCESS;
}
if ( this.getUsername_c().equals("") || this.getCustomerid_c().equals("") )
if(null != str && !"".equal(str))
{
}
------解决方案--------------------
"".equals(this.getUsername_c()) || "".equals(this.getCustomerid_c())