거꾸로 토마토

고정 헤더 영역

글 제목

메뉴 레이어

거꾸로 토마토

메뉴 리스트

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • 분류 전체보기 (106)
    • 사는 이야기 (20)
    • 유용한 정보 (3)
    • 리눅스 & 유닉스 (6)
    • book (6)
    • Programming (50)
      • Android (1)
      • Database (16)
      • iBatis (4)
      • Spring Framework (10)
      • jQuery (1)
    • me2day (14)

검색 레이어

거꾸로 토마토

검색 영역

컨텐츠 검색

response

  • Struts 2. Action 객체에서 request, response 객체 사용하기

    2009.10.28 by otamot

Struts 2. Action 객체에서 request, response 객체 사용하기

Action 객체 내에서 request 및 response 객체를 얻어오는 방법이다. public class UserAction extends ActionSupport { ... public String execute() { HttpServletRequest request = ServletActionContext.getRequest(); HttpServletResponse response = ServletActionContext.getResponse(); ... return SUCCESS; } } 일단 Action 객체는 ActionSupport 클래스를 상속한다. 그리고 객체 내에서 ServletActionContext 객체를 통해서 request와 response 객체를 얻어올 수 있다.

Programming/Spring Framework 2009. 10. 28. 15:25

추가 정보

인기글

최신글

페이징

이전
1
다음
TISTORY
거꾸로 토마토 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바