/etc/sitemap.do 로 접속했을때 /WEB-INF/jsp/etc/sitemap.jsp 로 바로 보여줄 필요성이 있을때 사용..
controller에서의 처리가 필요없이 바로 jsp 페이지나 html페이지를 보여줄때..
UrlFilenameViewController를 사용하라고 되어 있다.
<bean name="/etc/sitemap.do" class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
이렇게 써주면 될것 같은데.. 아직 테스트는 해보지 못했음.
저렇게 해주면 viewResolver 의 형식에 맞게 알아서 jsp페이지가 뜨지 않을까..?
만약 안된다면 Controller를 implements 해서 하나 만드는것도 좋다.
public ModelAndView handleRequst(HttpServletRequest request, HttpServletResponse response) {
.... 구현...
}
'Jsp-Servlet > Spring' 카테고리의 다른 글
CommandMapArgumentResolver (3) | 2011.03.21 |
---|---|
BeanNameAware, BeanFactoryAware, ApplicationContextAware (2) | 2011.02.18 |
UrlFilenameViewController 와 같은 기능을 직접 처리 (3) | 2011.01.10 |
spring 2.5 String Utils API (3) | 2011.01.04 |
struts1 + spring2.0 setting (2) | 2010.04.23 |