-
<jsp:forward> 액션 태그 사용법JSP 2023. 3. 21. 16:48
<jsp:forward page="이동할 페이지" />
- forward 를 사용하면 to.jsp 로 이동 해서 페이지를 표시하기 때문에
이전에 from.jsp에서 생성했던 요소들이 남아있지 않다. ( 소스도 to.jsp 의 소스만 가지고 있는다 )
그렇지만 URL 주소는 from.jsp로 변하지 않는다.
** from.jsp 의 내용이 남아있지 않는 이유는, forward 태그를 사용하면 from.jsp의 출력 버퍼 내용을 버리고 이동해서
to.jsp의 내용만 출력 버퍼에 저장된다.
'JSP' 카테고리의 다른 글
쿠키 (cookie) (0) 2023.03.22 자바빈 , <jsp:useBean> 액션 태그 (0) 2023.03.22 include 디렉티브 (0) 2023.03.21 <jsp:param> 페이지에 파라미터 추가 (0) 2023.03.21 <jsp:include> 액션 태그를 이용한 공통 영역 작성 (0) 2023.03.21