SSM+IDEA+TOMCAT+MYSQL+jsp
源码+环境配置+文档设计+PPT
运行效果图如下所示:
public void usernamecheck() throws IOException
{
ArrayList<Member> list = (ArrayList<Member>)commonDAO.findByHql("from Member where uname='"+uname+"' and delstatus='0' ");
int responseContext;
System.out.println(list.size());
if(list.size()==0){
responseContext = 0;
}else{
responseContext=1;
}
HttpServletResponse response=ServletActionContext.getResponse();
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(responseContext);
out.flush();
out.close();
}