Search results for 'JSP'

JSP - Response 객체의 메소드

2009/07/04 09:12


javax.servlet.http.HttpServletResponse

flushBuffer()

버퍼에 저장되는 있는 내용을 클라이언트에 전송

getBufferSize()

출력 버퍼의 크기를 정수 자료형으로 반환

getCharacterEncoding()

Response시 사용하는 문자 인코딩 방법으로 문자열 자료형으로 반환

getLocale()

지역정보를 java.util.Local 클래스의 객체형으로 반환

getOutputStream()

클라이언트에 자료를 전송하는 출력 스트립의 객체를 반환

isCommitted()

클라이언트에 어떤 내용으로 버퍼로부터 전송했으면 true로 반환

setBufferSize(int size)

출력 버퍼의 크기를 설정

setContentType(String type)

응답시 사용할 Content Type을 설정

setLocale(Locale locale)

지역정보를 임의로 설정함

addCookie(Cookie cookie)

쿨라이언트에게 새로운 쿠키정보를 전송함

sendError(int sc)

상태 코드에 따른 Http 에러 페이지를 클라이언트에게 전송함

sendRedirect(String location)

현재 페이지에서 문서를 다른 페이지로 이동시킴

 

2009/07/04 09:12 2009/07/04 09:12

미소 Jsp



JSP Request 객체의 메소드

2009/07/04 09:10


javax.servlet.http.HttpServletRequest

getAttribute(String name)

속성값 반환

getAttributeNames()

request 객체에 있는 모든 속성값의 배열을 반환

getCharacterEncoding()

post 형식으로 전송된 자료의 문자인코딩방식을 반환

getContentType()

request mime타임의 밧을 문자열로 반환

getInputStream()

Post형식으로 전송된 자료의 inputStream으로 반환

getLocale()

request의 우선적 지역정보를 반환

getLocales()

접속할수 있는 모든 클라이너트 지역정보를 배열로반환

getParameter(String name)

html문서의 폼으로 넘어온 정보의 값을 반환

public String getParameter(String name)

getParameterNames()

html문서의 폼으로 넘어온 정보로부터 폼들의 이름을 배열로 반환

public Enumeration getParameterNames()

getContentLength()

전송된 자료의 길이를 반환

getParameterValues(String name)

html문서의 폼으로 넘어온 모든 정보의 값을 반환

public String[] getParamterValues(String name)

getProtocol()

사용되는 프로토콜의 종류를 문자열로 반환

getReader()

post 형식으로 전송된 자료를 읽을 Reader를 반환

getRemoteAdd()

접속한 클라이언트의 ip 어드레스값을 문자열로 반환

getRemoteHost()

접속한 클라이언트의 도메인이름을 문자열로 반환

getServerName()

request를 처리하는 서버의 이름을 문자열로 반환

getServerPort()

request를 처리하는 소버의 포트번호를 정수형으로 반환

isSecure()

보안모드가 적용되는 클라이언트와 접속되어있는지 여부를 논리값반환

getAuthType()

인증형에 대한 값을 문자열로 반환

getContextPath()

어플리케이션 디렉토리의 url을 문자열로 반환

getCookies()

클라이언트부터 전송된 쿠키에 대한 정보를 반환

getMethod()

get,post인지를 문자열로 반환

public String getMethod()

getQueryString()

request QueryString값을 문자열로 반환

public String getQueryString()

getRequestedSession()

세션아이디의 값을 문자열로 반환

getProtocol()

사용되는 프로토콜의 종류를 문자열로 반환

getSession()

현재 세션 객체를 반환

public HttpSession getSession()

 

2009/07/04 09:10 2009/07/04 09:10

미소 Jsp