File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Mapping in Web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Mapping in Web.xml" Watch "Mapping in Web.xml" New topic
Author

Mapping in Web.xml

Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
How the mappings are being done when we have n number of servlets in an application.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

With multiple servlet-mapping entries.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
Then the web.xml becomes too long, is it?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Too long for what?
Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
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

Joined: Mar 22, 2000
Posts: 12682
    
    5
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


Java Resources at www.wbrogden.com
Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
Is there anyway that i can handle the above issue with xdoclet
 
 
subject: Mapping in Web.xml
 
Similar Threads
Variable with string as index or smt...
Best Internet application
WA #1.....word association
what data structure is appropriate for me?
How to Create a Phone Book with Java?