<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page buffer="8kb" autoFlush="true"%> <!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>Buffer 관리하기&경로</title> </head> <body> <%String path = request.getContextPath(); %> request.getContextPath() = <%=path %><br/> 사용 예)파일 저장 위치 : <%=path %>/path/file/abc.jpg<br/> <hr/>가로선을 그어주는 태그 : <hr/> <br/><br/> autoFlush="false"로 설정하면 <br/> 버퍼 사이즈 보다 더 큰 내용을 보여줄때<br/> buffer overFlow가 발생합니다.<br/> 일반적으로autoFlus="true"를 사용하고<br/> 명시하지 않아도 기본값으로 적용됩니다.<br/> buffer="8kb"가 default로 설정 되어 있습니다.<br/> 버퍼의 크기를 수정할 수 있습니다.<br/> </body> </html>
war파일 server에 올리기
요렇게 war파일이 생성 된다...
war르 파일을 서버 최상의 폴더에 복사 하면 자동으로 풀리게 된다~~
'JSP > 2012.04강의(MySQL)' 카테고리의 다른 글
2일차 텍스파일 출력하기 (0) | 2012.05.22 |
---|---|
2일차 기본객체 out , pageContext, application (0) | 2012.05.22 |
2일차 Buffer 관리하기 (0) | 2012.05.22 |
2일차 구구단 출력하기 (0) | 2012.05.22 |
2일차 복습 (0) | 2012.05.22 |