Thursday, May 1, 2003 09:03 AM
I would like to create a servlet which would create a virtual directory structure. Here is what I want to do :
User sends request for http://www.foo.com/bar/baz/quux.html
barServlet gets the parameter baz/quux.html and generates the appropriate page using data from a database and a template.
Basically it creates a virtual structure which is generated on the fly.
I know I could do it using servlet parameters(ie.: http://www.foo.com/bar?url=baz/quux.html) but it would require parsing the links on the generated pages, something I am reluctant to do.
Is it possible? If so, how can I do it?