Re: load servlet mappings at runtime in tomcat



Moth wrote:
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.

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

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



Relevant Pages

  • Re: multiple forms and one servlet
    ... "Yasaswi Pulavarti" wrote in message ... > I have one servlet which has multiple forms. ... > forms is pointing on one servlet. ... My guess is that you want the Front Controller Design Pattern (a J2EE blue ...
    (comp.lang.java.programmer)
  • Re: multiple forms and one servlet
    ... Yasaswi Pulavarti wrote: ... > I have one servlet which has multiple forms. ... > forms is pointing on one servlet. ... You can do a post request and append a variable like this: ...
    (comp.lang.java.programmer)
  • multiple forms and one servlet
    ... I have one servlet which has multiple forms. ... The action element of the ... forms is pointing on one servlet. ... requests as different reponses in the same servlet. ...
    (comp.lang.java.programmer)
  • Re: Default servlet and images/css/...
    ... > I want to make a web app that would use a default servlet. ... > set it I can't access images, css, etc. ... > would have human-readable URLs? ...
    (comp.lang.java.programmer)
  • Re: Struts1.1, subclassing controller servlet
    ... > I'm using a subclass of the standard controller servlet class ... > in my Struts1.1 web app. ... > when loading the servlet. ... subclass and are using something other than Digester, ...
    (comp.lang.java.programmer)