日期:2014-05-19 浏览次数:20780 次
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
public class StartControl implements Controller {
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws Exception {
System.out.println("controller is working");
return new ModelAndView("start");
//404错误 改成new ModelAndView("/WEB-INF/jsp/start.jsp");就没问题的...
}
}