[DISCLAIMER: This is a duplicate for a question I posted in the
official forums but haven't received any replies yet]
I've got a weird problem I haven't been able to figure out.
Using the following viewResolver configuration renders a pretty Velocity template:
For example, new ModelAndView("foo") renders the template from /WEB-INF/velocity/foo.vm.
However, when I tried to create a similar configuration for rendering
JSP's (and commented out the Velocity stuff), I'm getting a HTTP 200 with no content at all.
Trying to access the URL
http://localhost:8080/myapp/foo.html (I've mapped the DispatcherServlet to "*.html") results in the following log output:
What wonders me is that the log clearly claims the request was forwarded to "/WEB-INF/jsp/list.jsp" but the JSP is never rendered. Instead, as I mentioned already, I get 0 bytes of content and a HTTP 200 response code.
Here's the web.xml stuff that maps the request to the controller:
Any help is obviously appreciated. Especially if it makes me slap my forehead ;-)
[ October 10, 2005: Message edited by: Lasse Koskela ]