diff --git a/hospital/src/main/java/command/LoginCommand.java b/hospital/src/main/java/command/UserLoginCommand.java similarity index 81% rename from hospital/src/main/java/command/LoginCommand.java rename to hospital/src/main/java/command/UserLoginCommand.java index d7bb89f..e41600c 100644 --- a/hospital/src/main/java/command/LoginCommand.java +++ b/hospital/src/main/java/command/UserLoginCommand.java @@ -6,12 +6,12 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -public class LoginCommand implements Command { +public class UserLoginCommand implements Command { @Override public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ //TODO : DB작업 필요 - return "Login.jsp"; + return "UserLogin.jsp"; } } diff --git a/hospital/src/main/java/command/patientJoinCommand.java b/hospital/src/main/java/command/patientJoinCommand.java new file mode 100644 index 0000000..ff9f5d7 --- /dev/null +++ b/hospital/src/main/java/command/patientJoinCommand.java @@ -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 patientJoinCommand implements Command{ + @Override + public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ + return "patientJoin.jsp"; + } +} \ No newline at end of file diff --git a/hospital/src/main/java/command/patientLoginCommand.java b/hospital/src/main/java/command/patientLoginCommand.java new file mode 100644 index 0000000..4779fac --- /dev/null +++ b/hospital/src/main/java/command/patientLoginCommand.java @@ -0,0 +1,17 @@ +package command; + +import java.io.IOException; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public class patientLoginCommand implements Command { + @Override + public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ + //TODO : DB작업 필요 + + + return "patientLogin.jsp"; + } +} \ No newline at end of file diff --git a/hospital/src/main/java/controller/Fcontroller.java b/hospital/src/main/java/controller/Fcontroller.java index bebe109..345f069 100644 --- a/hospital/src/main/java/controller/Fcontroller.java +++ b/hospital/src/main/java/controller/Fcontroller.java @@ -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(); - - 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()); // 환자 회원가입 페이지 //이 부분에 계속적으로 매핑을 추가하면 됨 } diff --git a/hospital/src/main/webapp/UserJoin.jsp b/hospital/src/main/webapp/UserJoin.jsp index ccad2bd..f94c210 100644 --- a/hospital/src/main/webapp/UserJoin.jsp +++ b/hospital/src/main/webapp/UserJoin.jsp @@ -48,7 +48,7 @@

-

회원 가입

+

임직원 회원 가입


diff --git a/hospital/src/main/webapp/UserLogin.jsp b/hospital/src/main/webapp/UserLogin.jsp new file mode 100644 index 0000000..71cec63 --- /dev/null +++ b/hospital/src/main/webapp/UserLogin.jsp @@ -0,0 +1,42 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + + + + + + 병원 관리 시스템 + + + + + + + + + +

A 병원

+ + +

임직원 로그인

+ + + + +
+ +
+ + +
+ 홈으로 +

© 2020-2020

+
+ + \ No newline at end of file diff --git a/hospital/src/main/webapp/home.jsp b/hospital/src/main/webapp/home.jsp index 3cf22bf..9bf94bc 100644 --- a/hospital/src/main/webapp/home.jsp +++ b/hospital/src/main/webapp/home.jsp @@ -11,7 +11,7 @@

-   - +   + \ No newline at end of file diff --git a/hospital/src/main/webapp/patientJoin.jsp b/hospital/src/main/webapp/patientJoin.jsp new file mode 100644 index 0000000..44022d9 --- /dev/null +++ b/hospital/src/main/webapp/patientJoin.jsp @@ -0,0 +1,135 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + 환자 회원가입 + + + + + + +
+
+
+
+

환자 회원 가입

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
회원명
회원ID   
패스워드
패스워드확인
주소
전화번호
차량번호
생년월일
병과
성별 +
+ + +
+
+ + +
+
직책 +
+     + +
+
+     + +
+
+     + +
+
+     + +
+
+
+
+
+      +
+
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/hospital/src/main/webapp/patientLogin.jsp b/hospital/src/main/webapp/patientLogin.jsp new file mode 100644 index 0000000..393408d --- /dev/null +++ b/hospital/src/main/webapp/patientLogin.jsp @@ -0,0 +1,42 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + + + + + + 병원 관리 시스템 + + + + + + + + + +

A 병원

+ + + \ No newline at end of file