Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

best approach for a Spring MVC implemenation

 
J Knurek
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm setting up the navigation for a content management system. The content is created and stored in its folder structure by the backend system. So basically a jsp page gets created that looks a bit like:



There are a few other things related to the users content that will require a Spring Controller (therefor ideally a MultiActionController). I'm still a bit new to Spring so the problem I'm facing is that I don't know how to get the page_id. Nor do I know how to set up the ViewResolver properly so that I'm not changing the url the user enters.

below is a bit of the code that I've been using so far in an attempt to get this working, but I've had to hard code some stuff in for testing purposes

Controller:

DispatcherServlet:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic