2011. 1. 9. 22:32
반응형

/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) {
.... 구현...
}
반응형
Posted by seongsland