'Servlet'에 해당되는 글 3건

  1. 2009.07.30 [자료] text/plain
  2. 2009.05.15 [자료] servlet
  3. 2008.12.23 [JSP] JSP

[자료] text/plain

자료 2009. 7. 30. 15:49
response.setContentType("text/plain"); 에서 text/plain은 무엇인가?

In computing, plain text is a term used for an ordinary "unformatted" sequential file readable as textual material without much processing.

The encoding has traditionally been either ASCII, one of its many derivatives such as ISO/IEC 646 etc., or sometimes EBCDIC. No other encodings are used in plain text files which neither contain any (character-based) structural tags such as heading marks, nor any typographic markers like bold face, italics, etc.

Unicode is today gradually replacing the older ASCII derivatives limited to 7 or 8 bit codes. It will probably serve much the same purposes, but this time permitting almost any human language as well as important punctuation and symbols such as mathematical relations (≠ ≤ ≥ ≈), multiplication (× •), etc, which are not included in the more restricted ASCII set.

unformatted text를 지칭하는 용어.

default ContentType.

Posted by zeide
,

[자료] servlet

JSP 2009. 5. 15. 15:36

[힙영역]

instance 영역
<논리적구분>
===application===

===session===

===request===
request 객체 생성
(method url header):호출수만큼 생성
parameter table(map 형식: key=value)
키와 값은 string pool영역에 있다.
==인스턴스 영역은 주소만 매핑

===general===
servlet의 객체 생성
non-static member
명시적초기화
invoker연결 - init()호출(only once) - service(arg1, arg2)
-response 객체 생성:호출수만큼 생성
->출력버퍼도 생성(각각 주소가 다르다)
:호출수만큼 생성
->thread 객체 생성:호출수만큼 생성
디비에 연결된 객체==servlet의 수명
destroy()->dao.close(); dao=null;
->정상종료되게 만든다.

*동접시 req, rep, thr는 한 호출의 한 세트
==지정된 객체로만 연결된다.
*동시성문제 - 동시에 dao객체 사용(cpu 사용)==synchronized(con)<synchronized method ->performance problem ->EJB사용

*performance tunnig
prepared statement
connection pool

Posted by zeide
,

[JSP] JSP

JSP 2008. 12. 23. 12:00
JSP(Java Server Pages)
- 동작 페이지를 생성하기 위한 서버측 스크립트 언어

JSP 동작 구조


- 해당 JSP페이지가 최초로 요청되었을 때 단 한 번만 실행, 이후 같은 페이지에 대한 요청이 있으면 변환된 서블릿 파일로 서비스를 처리한다.

JSP 페이지가 Servlet으로 변하는 과정

Posted by zeide
,