• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mapping in Web.xml

 
Ajith Prasad
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How the mappings are being done when we have n number of servlets in an application.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With multiple servlet-mapping entries.
 
Ajith Prasad
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then the web.xml becomes too long, is it?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Ajith Prasad
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my straight forward question is, can we split web.xml in equal parts using any special tool and during run time, it should be combined automatically
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only thing that comes close to that is the default web.xml in the conf directory which applies to all apps in a Tomcat instances - it is the base that is modified in specific apps in their own web.xml (only one web.xml per app, not splitable)

If you want to write a tool to gather up web.xml fragments and create the one single web.xml required by your application, XSLT would probably be the simplest.

Bill
 
Ajith Prasad
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway that i can handle the above issue with xdoclet
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic