1. 테스트 파일 제거
2. 환자 회원가입 시 ID 값 받아서 환영메시지 노출하는 부분 오류
This commit is contained in:
BIN
hospital.zip
BIN
hospital.zip
Binary file not shown.
@@ -1,24 +0,0 @@
|
||||
package command;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import DB.BoardDao;
|
||||
import DB.BoardVo;
|
||||
|
||||
public class BoardViewCommand implements Command {
|
||||
public BoardViewCommand() {
|
||||
}
|
||||
|
||||
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
BoardDao dao = new BoardDao();
|
||||
BoardVo vo = new BoardVo();
|
||||
vo = dao.select(vo);
|
||||
request.setAttribute("print", vo);
|
||||
|
||||
return "boardView.jsp";
|
||||
}
|
||||
}
|
||||
@@ -6,8 +6,8 @@ import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import patientJoin.patientJoinVo;
|
||||
import patientJoin.patientJoinDao;;
|
||||
import patientJoin.patientJoinDao;
|
||||
import patientJoin.patientJoinVo;;
|
||||
|
||||
public class patientJoinCommand implements Command {
|
||||
|
||||
@@ -39,7 +39,7 @@ public class patientJoinCommand implements Command {
|
||||
n = dao.memberInsert(member);
|
||||
if (n != 0) {
|
||||
request.setAttribute("joinName", p_ID);
|
||||
path = "joinOk.jsp";
|
||||
path = "patientOK.jsp";
|
||||
} else {
|
||||
path = "joinFail.jsp";
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import command.BoardViewCommand;
|
||||
import command.Command;
|
||||
import command.HomeCommand;
|
||||
import command.UserJoinCommand;
|
||||
@@ -48,20 +47,19 @@ public class Fcontroller extends HttpServlet {
|
||||
list.put("/UserLogin.do", new UserLoginCommand()); // 임직원 로그인 처리
|
||||
list.put("/UserJoin.do", new UserJoinCommand()); // 임직원 회원가입
|
||||
list.put("/UserReg.do", new UserRegCommand()); // 임직원 회원가입 전달 처리
|
||||
list.put("/UserList.do", new UserListCommand()); // 유저 리스트 보여주는 페이지
|
||||
list.put("/UserMyList.do", new UserMyListCommand()); // 직원 개인 출퇴근 항목
|
||||
list.put("/loginCheck.do", new UserLoginCheckCommand()); // 임직원 로그인 체크
|
||||
list.put("/patientlogin.do", new patientLoginCommand()); // 환자 로그인 처리
|
||||
list.put("/patientJoin.do", new patientJoinCommand()); // 환자 회원가입 처리
|
||||
list.put("/patientReg.do", new patientRegCommand()); // 환자 회원가입 전달 처리
|
||||
list.put("/patientCheck.do", new patientLoginCheckCommand()); // 환자 로그인 체크
|
||||
list.put("/boardView.do", new BoardViewCommand()); // 데이터 보기 test 페이지
|
||||
list.put("/UserList.do", new UserListCommand()); // 유저 리스트 보여주는 페이지
|
||||
list.put("/patientInout.do", new patientInoutCommand()); // 외래입원 예약
|
||||
list.put("/patientInoutCheck.do", new patientInoutCheckCommand()); // 외래입원 예약 체크
|
||||
list.put("/patientInoutRes.do", new patientInoutResCommand()); // 입원외래 진료 결과
|
||||
list.put("/patientTest.do", new patientTestCommand()); // 건강검진 검사 예약
|
||||
list.put("/patientTestRes.do", new patientTestResCommand()); // 건강검진 검사 결과
|
||||
list.put("/patientTestCheck.do", new patientTestCheckCommand()); // 건강검진 검사 결과
|
||||
list.put("/UserMyList.do", new UserMyListCommand()); // 직원 개인 출퇴근 항목
|
||||
|
||||
//이 부분에 계속적으로 매핑을 추가하면 됨
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<th scope="row">회원명</th><td colspan="3"><input class="form-control" style="width:30%" type="text" id="u_name" name="u_name" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">회원ID</th><td colspan="3"> <input class="form-control d-inline" style="width:30%" type="text" id="u_ID" name="u_ID" maxlength="10"> <input class="btn btn-info" type="button" value="중복확인" onclick="idValidCheck()"></td>
|
||||
<th scope="row">회원ID</th><td colspan="3"> <input class="form-control d-inline" style="width:30%" type="text" id="u_ID" name="u_ID" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">패스워드</th><td colspan="3"><input class="form-control" style="width:30%" id="u_psw" name="u_psw" type="password" size="10"></td>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<th scope="row">환자성명</th><td colspan="3"><input class="form-control" style="width:30%" type="text" id="p_name" name="p_name" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">회원ID</th><td colspan="3"> <input class="form-control d-inline" style="width:30%" type="text" id="p_ID" name="p_ID" maxlength="10"> <input class="btn btn-info" type="button" value="중복확인" onclick="idValidCheck()"></td>
|
||||
<th scope="row">회원ID</th><td colspan="3"> <input class="form-control d-inline" style="width:30%" type="text" id="p_ID" name="p_ID" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">패스워드</th><td colspan="3"><input class="form-control" style="width:30%" id="p_psw" name="p_psw" type="password" size="10"></td>
|
||||
|
||||
Reference in New Issue
Block a user