After getting the price increase form working from the MVC tutorial I read the docs of SimpleFormController and thought that:
public ModelAndView onSubmit(Object command)
throws ServletException {
... // increase logic
return new ModelAndView(new RedirectView(getSuccessView()));
}
could be replaced with:
protected void doSubmitAction(Object command) throws Exception(
... // increase logic
// no need for the return of ModelAndView(...)
}
Now when I tried this and submit a price increase I get a web server error that /WEB-INF/jsp/hello.htm.jsp is missing (hello.htm would have been resolved just fine with the servlet mapping). What I can't figure out is where the .jsp at the end got added and therefore why this didn't work. I expected them to be equivalent.
Can someone enlighten me?


Reply With Quote