资源简介
J2EE项目开发 SSH框架 MYSQL数据库
代码片段和文件信息
package com.keyan.ajax.servlet;
import java.io.Serializable;
import java.util.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.keyan.hibernate.dao.PiciDao;
import com.keyan.hibernate.dao.Project1Dao;
import com.keyan.hibernate.dao.ProjectcgDao;
import com.keyan.hibernate.dao.ThesisDao;
import com.keyan.hibernate.dao.UserDAO;
import com.keyan.hibernate.dao.WorkDao;
import com.keyan.hibernate.dao.ZhuanliDao;
/** 供JSON-RPC组件远程调用的AjaxBean */
public class AjaxBean extends baseLog {
/**取得用户分类列表*/
public boolean upadte(String idString passwordString telString postString addr)
{
UserDAO userDAO=new UserDAO();
boolean f;
f= userDAO.update(new Integer(id)passwordtelpostaddr);
return f;
}
public boolean yanzheng(String name)
{
UserDAO userDAO=new UserDAO();
List user=new ArrayList();
user = userDAO.queryName(name);
boolean f;
if((user.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
public boolean yanzhengpici(String pcname)
{
PiciDao piciDao=new PiciDao();
List project1=new ArrayList();
project1 = piciDao.queryByname(pcname);
boolean f;
if((project1.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
public boolean yanzhengproject1(String name)
{
Project1Dao project1Dao=new Project1Dao();
List project11=new ArrayList();
project11 = project1Dao.findall88(name);
boolean f;
if((project11.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
public boolean yanzhengWork(String name)
{
WorkDao workDAO=new WorkDao();
List work=new ArrayList();
work = workDAO.queryByName2(name);
boolean f;
if((work.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
public boolean yanzhengThesis(String name)
{
ThesisDao thesisDAO=new ThesisDao();
List thesis=new ArrayList();
thesis=thesisDAO.queryByName2(name);
boolean f;
if((thesis.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
public boolean yanzhengProjectcg(String name)
{
ProjectcgDao projectcgDAO=new ProjectcgDao();
List projectcg=new ArrayList();
projectcg = projectcgDAO.queryByName2(name);
boolean f;
if((projectcg.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
public boolean yanzhengZhuanli(String name)
{
ZhuanliDao zhuanliDAO=new ZhuanliDao();
List zhuanli=new ArrayList();
zhuanli= zhuanliDAO.queryByName2(name);
boolean f;
if((zhuanli.size()==0))
{
f=true;
}
else{
f=false;
}
return f;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-04-13 18:39 kygl\
文件 7251 2011-08-01 08:56 kygl\.classpath
目录 0 2011-04-13 18:40 kygl\.myeclipse\
文件 563 2011-04-07 12:24 kygl\.myhibernatedata
文件 287 2011-08-07 09:33 kygl\.myme
文件 262 2011-04-07 12:24 kygl\.mystrutsdata
文件 1696 2011-08-01 13:55 kygl\.project
目录 0 2011-04-13 18:40 kygl\.settings\
文件 500 2011-04-07 12:24 kygl\.settings\.jsdtscope
文件 330 2011-04-07 12:24 kygl\.settings\org.eclipse.jdt.core.prefs
文件 49 2011-04-07 12:24 kygl\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2011-04-07 12:24 kygl\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2011-04-13 18:40 kygl\src\
目录 0 2011-04-13 18:40 kygl\src\com\
目录 0 2011-04-13 18:40 kygl\src\com\keyan\
目录 0 2011-04-13 18:40 kygl\src\com\keyan\ajax\
目录 0 2011-04-13 18:40 kygl\src\com\keyan\ajax\servlet\
文件 2917 2011-04-08 19:49 kygl\src\com\keyan\ajax\servlet\AjaxBean.java
文件 202 2011-04-07 12:24 kygl\src\com\keyan\ajax\servlet\ba
目录 0 2011-04-13 18:40 kygl\src\com\keyan\hibernate\
目录 0 2011-08-01 16:46 kygl\src\com\keyan\hibernate\dao\
文件 397 2011-03-19 16:13 kygl\src\com\keyan\hibernate\dao\ba
文件 4312 2011-04-07 12:24 kygl\src\com\keyan\hibernate\dao\DataDAO.java
文件 2684 2011-04-07 12:24 kygl\src\com\keyan\hibernate\dao\GgDAO.java
文件 234 2011-03-19 16:13 kygl\src\com\keyan\hibernate\dao\Iba
文件 4556 2011-04-07 12:24 kygl\src\com\keyan\hibernate\dao\InfoDAO.java
文件 3185 2011-04-07 12:24 kygl\src\com\keyan\hibernate\dao\PiciDao.java
文件 5142 2011-03-19 16:13 kygl\src\com\keyan\hibernate\dao\PointDAO.java
文件 5122 2011-03-19 16:13 kygl\src\com\keyan\hibernate\dao\PostDAO.java
文件 3519 2011-04-07 12:24 kygl\src\com\keyan\hibernate\dao\PppeopleDao.java
文件 31256 2011-04-09 19:54 kygl\src\com\keyan\hibernate\dao\Project1Dao.java
............此处省略719个文件信息
评论
共有 条评论