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
31
32
33
34
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<%
// 서버에서 처리한 결과를 클라이언트 응답할때 http header값 변경
// response.setHeader("헤더이름", "값");
//클라이언트에 보낼때 파일을 브라우저에서 바로 실행하지 않고 첨부(다운)되게 설정
// response.setHeader("content-Disposition", "attachment; filename=")
//서버에서 처리한 결과를 보내는 타입을 설정해서 보내기
// response.setContentType("text/html; charset=UTF-8;");
//쿠키값을 서버에서 클라이언트로 보낼때
//쿠키는 클라이언트에 저장
// response.addCookie(쿠키);
//서버에서 클라이언트 응답할때 다른 페이지 요청을 재전송
//html 태그 <a href ="request.jsp"> 하이퍼링크 </a>
// 자바크스크립트 location.href ="request.jsp"
//jsp 하이퍼링크
response.sendRedirect("request.jsp");
%>
</body>
</html>
|
cs |