发布时间 : 星期二 文章大连交通大学计算机毕业论文格式更新完毕开始阅读
if (userType == 0) { }
if (userType == 1) { }
if (userType == 2) {
String sql = \ Object[] con = { userName, userPw };
List adminList = adminDAO.getHibernateTemplate().find(sql, con); if (adminList.size() == 0) {
result = \
WebContext ctx = WebContextFactory.get(); HttpSession session = ctx.getSession(); TStu stu = (TStu) adminList.get(0); session.setAttribute(\session.setAttribute(\result = \} else {
String sql = \ Object[] con = { userName, userPw };
List teaList = teaDAO.getHibernateTemplate().find(sql, con); if (teaList.size() == 0) { }
result = \
WebContext ctx = WebContextFactory.get(); HttpSession session = ctx.getSession(); TTea tea = (TTea) teaList.get(0); session.setAttribute(\session.setAttribute(\result = \} else {
String sql = \ Object[] con = { userName, userPw };
List adminList = adminDAO.getHibernateTemplate().find(sql, con); if (adminList.size() == 0) { }
result = \
WebContext ctx = WebContextFactory.get(); HttpSession session = ctx.getSession(); TAdmin admin = (TAdmin) adminList.get(0); session.setAttribute(\session.setAttribute(\result = \} else {
}
}
return result;
}
6.2系统前台模块的详细设计与实现 6.2.1学生登录的页面的详细设计与实现
<%
Object o=request.getAttribute(\ ArrayList list=(ArrayList)o; if(list.size()==0) { } %>
${sta.index+1 }:${timu.timuName } (
本题${timu.timuFenshu }分
,标准答案:${timu.timuDaan} ,)
考
生
答
案
:
response.sendRedirect(path+\ var=\> color=\>${timu.timuDaanAsStu}
A:
type=\ type=\ type=\ type=\
name=\${timu.timuId}\ name=\${timu.timuId}\ name=\${timu.timuId}\ name=\${timu.timuId}\
value=\ style=\0\value=\ style=\0\value=\ style=\0\value=\ style=\0\
A:
type=\ type=\
name=\${timu.timuId}\ name=\${timu.timuId}\
value=\ style=\0\value=\ style=\0\value=\ style=\0\value=\ style=\0\
value=\ style=\0\value=\ style=\0\
6.3系统后台模块的详细设计与实现
public String adminPwEdit(String userPwNew) {
}
WebContext ctx = WebContextFactory.get();
e.printStackTrace();
System.out.println(\try {
Thread.sleep(700);
} catch (InterruptedException e) {
HttpSession session = ctx.getSession();
TAdmin admin = (TAdmin) session.getAttribute(\ admin.setUserPw(userPwNew);
adminDAO.getHibernateTemplate().update(admin); session.setAttribute(\return \}
6.3.4管理员的课程管理功能的详细设计与实现
// 添加课程
// 删除课程
public String kechengDel() { }
TKecheng kecheng = kechengDAO.findById(kechengId); kecheng.setDel(\
kechengDAO.attachDirty(kecheng); this.setMessage(\鎿嶄綔鎴愬姛\this.setPath(\return \// 课程管理
public String kechengMana() { }
String sql = \
List kechengList = kechengDAO.getHibernateTemplate().find(sql); Map request = (Map) ServletActionContext.getContext().get(\request.put(\ return ActionSupport.SUCCESS; public String kechengAdd() { }
TKecheng kecheng = new TKecheng(); kecheng.setKechengName(kechengName); kecheng.setDel(\kechengDAO.save(kecheng); this.setMessage(\鎿嶄綔鎴愬姛\this.setPath(\return \