Announcement Announcement Module
No announcement yet.
JSP form entry Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSP form entry

    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

    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?

  • #2
    Take a look at org.springframework.web.servlet.view.UrlBasedViewR esolver in Javadocs and section 12.5.1 of reference docs.