redirect
-
SendRedirect 와 RequestDispatcher카테고리 없음 2024. 7. 19. 14:20
▤ 목차" data-ke-type="html">HTML 삽입미리보기할 수 없는 소스 클라이언트가 파일을 요청할때바로 해당파일을 보여주는 것이 아니라 특정 파일을 거쳐서 보여줘야하는 경우가 있다.클라이언트에서 a.jsp를 요청하는 경우, 서버는 a.jsp를 응답하는 것이 아닌 b.jsp를 보내는 것이 필요하다. 현실적으로 클라이언트에서 로그인 버튼을 눌렀을때 원하는 페이지는 로그인 성공과 실패 유무이다.하지만 서버단에서 버튼을 누른 경우, 해당 주요 정보가 맞는지 확인하는 과정이 발생한다. 이후 결과에 따라로그인 성공, 실패 페이지를 전송한다. 두개의 잘 비교하기 위해서는 URL을 잘 확인하자!! ✔ SendRedirectmodel1 방식에서 페이지를 요청할때 default 방식이다.redirect는..