1. 임직원 로그인 페이지 추가
2. 환자 로그인, 회원가입 페이지 추가
This commit is contained in:
@@ -13,8 +13,10 @@ import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import command.Command;
|
||||
import command.HomeCommand;
|
||||
import command.LoginCommand;
|
||||
import command.UserJoinCommand;
|
||||
import command.UserLoginCommand;
|
||||
import command.patientJoinCommand;
|
||||
import command.patientLoginCommand;
|
||||
|
||||
@WebServlet("/Fcontroller")
|
||||
public class Fcontroller extends HttpServlet {
|
||||
@@ -28,10 +30,12 @@ public class Fcontroller extends HttpServlet {
|
||||
public void init(ServletConfig config) throws ServletException {
|
||||
// TODO Auto-generated method stub
|
||||
list = new HashMap<String, Command>();
|
||||
|
||||
list.put("/login.do", new LoginCommand()); //로그인 처리
|
||||
|
||||
list.put("/home.do", new HomeCommand()); //처음 보여주는 페이지;
|
||||
list.put("/UserLogin.do", new UserLoginCommand()); // 임직원 로그인 처리
|
||||
list.put("/patientlogin.do", new patientLoginCommand()); // 환자 로그인 처리
|
||||
list.put ("/UserJoin.do", new UserJoinCommand()); // 임직원 회원가입 페이지
|
||||
list.put ("/patientJoin.do", new patientJoinCommand()); // 환자 회원가입 페이지
|
||||
//이 부분에 계속적으로 매핑을 추가하면 됨
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user