In below code having trouble in setting adminInfoDO with userbean
public boolean validateUserDetail(HttpServletRequest request, HttpServletResponse response, UserBean userBean,HttpSession session){
boolean pop=false;
try{
String username=request.getParameter("user");
String password=request.getParameter("pwd");
AdminInfoDO adminInfoDO=new AdminInfoDO();
adminInfoDO = AdminInfoSL.validateUserDetail(username, password);
System.out.println("\n\n hello" + adminInfoDO);
if (adminInfoDO.getAdminid()>0 ) {
userBean.setAdminInfoDO(adminInfoDO);
pop=true;
}
else{
pop=false;
}
}catch (Exception e) {
e.printStackTrace();
}
return pop;
}