From ab54be7072561105938116ce4103f7447796a29d Mon Sep 17 00:00:00 2001 From: mcutegs2 Date: Tue, 9 Jun 2020 16:51:55 +0900 Subject: [PATCH] =?UTF-8?q?1.=20=ED=99=88=20=ED=99=94=EB=A9=B4=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EA=B5=AC=EC=84=B1=202.=20=EC=9E=84=EC=A7=81?= =?UTF-8?q?=EC=9B=90=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EC=97=B0=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hospital/.classpath | 2 +- hospital/.settings/org.eclipse.jdt.core.prefs | 6 +- .../src/main/java/command/LoginCommand.java | 2 +- .../main/java/command/UserJoinCommand.java | 14 ++ .../src/main/java/controller/Fcontroller.java | 2 + hospital/src/main/webapp/UserJoin.jsp | 135 ++++++++++++++++++ hospital/src/main/webapp/home.jsp | 20 ++- 7 files changed, 164 insertions(+), 17 deletions(-) create mode 100644 hospital/src/main/java/command/UserJoinCommand.java create mode 100644 hospital/src/main/webapp/UserJoin.jsp diff --git a/hospital/.classpath b/hospital/.classpath index 3b7e256..cc39f60 100644 --- a/hospital/.classpath +++ b/hospital/.classpath @@ -24,7 +24,7 @@ - + diff --git a/hospital/.settings/org.eclipse.jdt.core.prefs b/hospital/.settings/org.eclipse.jdt.core.prefs index 3a0745f..a6fee6f 100644 --- a/hospital/.settings/org.eclipse.jdt.core.prefs +++ b/hospital/.settings/org.eclipse.jdt.core.prefs @@ -1,9 +1,9 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate @@ -13,4 +13,4 @@ org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=1.8 +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/hospital/src/main/java/command/LoginCommand.java b/hospital/src/main/java/command/LoginCommand.java index 064bd77..d7bb89f 100644 --- a/hospital/src/main/java/command/LoginCommand.java +++ b/hospital/src/main/java/command/LoginCommand.java @@ -12,6 +12,6 @@ public class LoginCommand implements Command { //TODO : DB작업 필요 - return "views/student/loginForm.jsp"; + return "Login.jsp"; } } diff --git a/hospital/src/main/java/command/UserJoinCommand.java b/hospital/src/main/java/command/UserJoinCommand.java new file mode 100644 index 0000000..df59e1f --- /dev/null +++ b/hospital/src/main/java/command/UserJoinCommand.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 UserJoinCommand implements Command{ + @Override + public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ + return "UserJoin.jsp"; + } +} diff --git a/hospital/src/main/java/controller/Fcontroller.java b/hospital/src/main/java/controller/Fcontroller.java index 3e368b8..bebe109 100644 --- a/hospital/src/main/java/controller/Fcontroller.java +++ b/hospital/src/main/java/controller/Fcontroller.java @@ -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()); // 임직원 회원가입 페이지 //이 부분에 계속적으로 매핑을 추가하면 됨 } diff --git a/hospital/src/main/webapp/UserJoin.jsp b/hospital/src/main/webapp/UserJoin.jsp new file mode 100644 index 0000000..ccad2bd --- /dev/null +++ b/hospital/src/main/webapp/UserJoin.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/home.jsp b/hospital/src/main/webapp/home.jsp index 880bb5b..3cf22bf 100644 --- a/hospital/src/main/webapp/home.jsp +++ b/hospital/src/main/webapp/home.jsp @@ -4,18 +4,14 @@ -Insert title here +병원 관리 시스템 - -

what the hell?

- - -

병원 임직원 회원가입

- -아이디 :
-암호 :
-이름 :
-e-mail :

- +

A 병원

+   + +
+
+   + \ No newline at end of file