• Post Reply Bookmark Topic Watch Topic
  • New Topic

hidding servlets with paths  RSS feed

 
Mike Nightsky
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i try to build an application on tomcat, where i'd like to have bookmarkable pages
(like /main/funds/interrestfunds/successone) and this should be handled by an servlet. but thats not all. some of these pages are handled by other servlets, which do very different things.
like /main -> contentServlet
/main/fund -> contentServlet
/main/fund/performance -> reportServlet
/main/fund/performance/detail -> contentServlet.
question:
--------
is there an easier/smarter way, as to maintain a maping for all servlets or urls and then invoking a requestdispather for eachone?
thanx Mike
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about using your webapp's configuration file (web.xml)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!