Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- oracle
- 예외처리
- paint
- Java
- 배열
- mybatis
- 에러페이지
- Graphic
- 기본
- 클래스
- AWT
- 오버로딩
- 어노테이션
- Spring
- 안드로이드
- struts2
- JSP
- Android
- 메소드
- HTML
- 이클립스
- Eclips
- layout
- 국제화
- OGNL
- 전화걸기
- 메서드
- JavaScript
- 생성자
- Menu
Archives
- Today
- Total
note
JSP 리다이렉트(redirect)이용해서 페이지 이동하기 본문
responseA.jsp 실행화면
responseA.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>responseA</title>
</head>
<body>
현재 페이지는 responseA입니다. 화면에 보여지지 않습니다.
</body>
</html>
<%
response.sendRedirect("/chap03/responseB.jsp");
%>
위에 HTML 부분은 모두 없는게 일반적(표시가 되지 않기 때문에)
responseB.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>responseB</title>
</head>
<body>
responseB.jsp 입니다.
</body>
</html>
'JSP > 기본' 카테고리의 다른 글
| autoFlush 설정(true,false) (0) | 2012.02.06 |
|---|---|
| 리다이렉트(Redirect)를 이용해서 페이지 이동하기2 (0) | 2012.02.06 |
| JSP 헤더 목록 출력(Enumeration) (0) | 2012.02.06 |
| request 기본 객체의 파라미터 읽기 메서드 (0) | 2012.02.06 |
| 파라미터 (0) | 2012.02.03 |