Bryan, Combine this with Tom's idea and a database.
Request received at http://www.domain.com/something If it matches a predefined list it is passed to the corresponding page if no match it checks the database for the occurrence of the salesperson if a match is found the redirect it to another context such as http://www.domain.com/salespeople/johndoe where you have your template set up. Yeah I'm a little twisted up stairs, so I'm told. Doug ----- Original Message ----- From: "Parsons Technical Services" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, March 27, 2004 8:40 PM Subject: Re: Fake 'alias' for sales rep pages > Bryan, > > As I haven't done this myself yet, here's my thoughts. > You will need a servlet/jsp that will serve as your index page. > If the request comes in as: > http://www.domain.com > Then it will serve up the index page. > If the request comes in as: > http://www.domain.com/johndoe > It will call your servlet/jsp passing it the name johndoe. > > For examples of code to do this look at the source for the manager. It has a > servlet that takes most of the request for the manager application and then > redistributes the call to the appropriate place. > > Good luck and let us know how it turns out. > > Doug > www.parsonstechnical.com > > > ----- Original Message ----- > From: "Bryan K. Cantwell" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Saturday, March 27, 2004 7:45 PM > Subject: Fake 'alias' for sales rep pages > > > > I have created a templated 'Personal' web page (jsp) that dynamically > > becomes the personal page of each of our sales reps in the copmpany. What > I > > need to know is how I can make the URL unique for each rep's page without > > actually creating a directory or alias for each and every one of them. For > > instance I am John Doe, sales rep, I want my personal URL to be > > http://www.domain.com/johndoe/. Any help? > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
