PDA

View Full Version : JSP form entry


michaeldiamond
Sep 28th, 2004, 08:40 PM
I have a collection of jsps that I would like to use Spring backed forms with. I would like to be able to access them by via the URL to the jsp rather than the controller entry point (ie login.do).

The problem I have is how to intercept the request to setup the values needed for the spring tags. If I have the DispatcherServlet handle *.jsp, I end up in a loop when RequestDispatcher.forward() is called and control is handed back to the DispatcherServlet again. If I allow *.jsp to keep its default mapping, I can't use the <spring:bind> tags.

Is this possible or am I complicating things unnecessarily?

katentim
Sep 28th, 2004, 09:14 PM
Take a look at org.springframework.web.servlet.view.UrlBasedViewR esolver in Javadocs and section 12.5.1 of reference docs.