Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

load servlet mappings at runtime in tomcat

Thread view: 
Moth - 18 Sep 2006 12:13 GMT
Can anyone suggest a way to achieve dynamic servlet mappings in tomcat 5.5.

What I want to do is run a web app with any number of paths all pointing to
one servlet.  These paths would be loaded from a database and extra paths
can be added at runtime by the user.  So an example would be
www.domain.com/sample and www.domain.com/anothersample would both execute
the same servlet.

Another option I thought of was having a custom 404 servlet that would check
the request supplied and then redirect.
Thomas Hawtin - 18 Sep 2006 14:40 GMT
> Can anyone suggest a way to achieve dynamic servlet mappings in tomcat 5.5.
>
[quoted text clipped - 3 lines]
> www.domain.com/sample and www.domain.com/anothersample would both execute
> the same servlet.

Install it (or a forwarding servlet) as the default mapping in the root
webapp?

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.