1. 홈 화면 버튼 구성
2. 임직원 회원가입 페이지 연동
This commit is contained in:
@@ -12,6 +12,6 @@ public class LoginCommand implements Command {
|
||||
//TODO : DB작업 필요
|
||||
|
||||
|
||||
return "views/student/loginForm.jsp";
|
||||
return "Login.jsp";
|
||||
}
|
||||
}
|
||||
|
||||
14
hospital/src/main/java/command/UserJoinCommand.java
Normal file
14
hospital/src/main/java/command/UserJoinCommand.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package command;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class UserJoinCommand implements Command{
|
||||
@Override
|
||||
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
|
||||
return "UserJoin.jsp";
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import command.Command;
|
||||
import command.HomeCommand;
|
||||
import command.LoginCommand;
|
||||
import command.UserJoinCommand;
|
||||
|
||||
@WebServlet("/Fcontroller")
|
||||
public class Fcontroller extends HttpServlet {
|
||||
@@ -30,6 +31,7 @@ public class Fcontroller extends HttpServlet {
|
||||
|
||||
list.put("/login.do", new LoginCommand()); //로그인 처리
|
||||
list.put("/home.do", new HomeCommand()); //처음 보여주는 페이지;
|
||||
list.put ("/UserJoin.do", new UserJoinCommand()); // 임직원 회원가입 페이지
|
||||
//이 부분에 계속적으로 매핑을 추가하면 됨
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user