}
}
return INPUT;
}
if (power == 2) { }
if (power == 3) { }
return INPUT;
session = (Map) ActionContext.getContext().getSession(); session.put(\, user); return \; int reviewer =
.getReviewer();
session = (Map) ActionContext.getContext().getSession(); session.put(\, user); if (power == 1) {
return \;
userService.findTeacherByLid(user.getLid())
session = (Map) ActionContext.getContext().getSession(); session.put(\, user); if (reviewer == 1)
return \; return \; if (reviewer == 0)
} else {
ÏÂÃæµÄÊÇÔÚServiceÖдúÂ룺
public Login login(String name, String password) { }
return userDao.findByNameAndPass(name, password);
ÏÂÃæÊÇÔÚdao²ãµÄ´úÂ룺
public Login findByNameAndPass(String name, String password) {
String[] str = { name, password };
List
\, str);
if (list.size() > 0) {
return list.get(0);
}
return null;
ÏÂÃæÊÇÔÚstruts.xmlÖеĴúÂ룺
name=\>/WEB-INF/content/loginForm.jsp
5.2¹ÜÀíÔ±¹¦ÄܵÄʵÏÖ
Ê×ÏÈÊÇÒ³Ãæ¹ÜÀíÔ±µÇ¼½øÀ´µÄÖ÷Ò³Ãæ£º
ÏÂÃæÊDZ¾Ò³ÃæµÄ²¿·ÖʵÏÖ´úÂ룺
ÏÂÃæÊÇÆÀÉó½ÌʦÁÐ±í£º
½Ì¹¤±àºÅ | ÐÕÃû | Ö°³Æ | µç»°ºÅÂë | E-mail³Æ | |
---|---|---|---|---|---|
${teacher.teacheNo} | ${teacher.name } | ${teacher.professional }
| ${teacher.telephone } | ${teacher.email } | href=deleteTeacher?teacher.tid=${teacher.tid}&teacher.lid=${teach |
ÏÂÃæÊdzöÌâ½ÌʦÁÐ±í£º