Re: Fake 'alias' for sales rep pages

2004-03-29 Thread Graham Reeds
This is what I do for my web-page.

It will be multilingual so a cookie (first set when they visit the site)
causes the links to be of the form: /, so you get uk/home.html,
de/products.html etc.  In actual fact each link is caught by a JSP page
which in turn creates a session bean and then calls a servlet that accesses
a database which serves up the required page in the correct language (or in
my case serves up 404 errors:-)

G.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fake 'alias' for sales rep pages

2004-03-27 Thread Parsons Technical Services
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]



Re: Fake 'alias' for sales rep pages

2004-03-27 Thread Parsons Technical Services
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]



Re: Fake 'alias' for sales rep pages

2004-03-27 Thread Bryan K. Cantwell
I can send to the real location , no problem, but, that I need to know is
how to go to  http://www.domain.com/johndoe which is the unique url for John
Doe, even though there really is no such directory or alias as /johndoe/ .
There could be hundreds or even thousands of these 'personal' sales rep
pages and I really would hate the thought of being forced into actually
creating a unique directory or alias for each and every one...


- Original Message - 
From: "Tom K" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 7:30 PM
Subject: RE: Fake 'alias' for sales rep pages


> Well...you might try using something like a response.redirect() to
> another url. You might need to set some type of flag in a database
> corresponding with there login id which would redirect them to a unique
> URL. Just some ideas.
>
> Sincerely,
>
> Tom K.
>
> -Original Message-
> From: Bryan K. Cantwell [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 27, 2004 6:45 PM
> To: Tomcat Users List
> 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]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
>
>
>
> -
> 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]



RE: Fake 'alias' for sales rep pages

2004-03-27 Thread Tom K
Well...you might try using something like a response.redirect() to
another url. You might need to set some type of flag in a database
corresponding with there login id which would redirect them to a unique
URL. Just some ideas.

Sincerely,

Tom K.

-Original Message-
From: Bryan K. Cantwell [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 27, 2004 6:45 PM
To: Tomcat Users List
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]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fake 'alias' for sales rep pages

2004-03-27 Thread Bryan K. Cantwell
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]