Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-09 Thread Jeffrey Winter
At 01:48 PM 1/8/2003, you wrote: So you're talking about using the sorts of Filters available as of the Servlet 2.3 spec? That actually sounds promising, I'll take a look at it. Yep. Okay, one question about this: in the Filter, I'd parse the url and determine which servlet should be the

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-09 Thread Jeffrey Winter
Depends upon your point of view. Mine is different from those I've seen in reply to your inquiry so far. If I can do something declaratively in Apache, I do it. If I am going to write code, I put do it in Tomcat. Apache is a world-class web server. Tomcat is an application (Servlet/JSP)

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-09 Thread Craig R. McClanahan
On Thu, 9 Jan 2003, Jeffrey Winter wrote: Date: Thu, 9 Jan 2003 09:35:09 -0500 From: Jeffrey Winter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Servlet Mapping Strategy w/ user-specific URLs At 01:48 PM 1/8/2003

Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Jeffrey Winter
I would like to have a url structure of the form: myplace.com/user/xxx/resource/yyy where user and resource are handled by individual servlets. I would like users to have the ability to POST there username/password to /user and have it respond with their personal url, e.g.:

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Justin Ruthenbeck
There's no way to accomplish what you're shooting for using only the mappings in the web.xml. However, you could pretty easily do it through a filter running on requests to /user/*. If you do this, you could forward any requests that match URI /user to your UserServlet and anything that

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Jeffrey Winter
in these areas? Or at least some good resources that go into these issues? Thanks. - Original Message - From: Justin Ruthenbeck [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 3:40 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Will Hartung
From: Justin Ruthenbeck [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 12:40 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs There's no way to accomplish what you're shooting for using only the mappings in the web.xml. However, you could pretty easily do it through

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Justin Ruthenbeck
PROTECTED] Sent: Wednesday, January 08, 2003 3:40 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs There's no way to accomplish what you're shooting for using only the mappings in the web.xml. However, you could pretty easily do it through a filter running on requests to /user

Re: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Will Hartung
From: Jeffrey Winter [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 1:48 PM Subject: Re: Servlet Mapping Strategy w/ user-specific URLs There certainly is some overlap between those services as outlined in the Servlet spec, and the functionality provided by Apache itself

RE: Servlet Mapping Strategy w/ user-specific URLs

2003-01-08 Thread Noel J. Bergman
Is it possible to setup a servlet mapping such that a UserServlet handles requests to /user/xxx, but a ResourceServlet handles requests to /user/xxx/resource/yyy? Easy enough to do with mod_rewrite, as you have planned since you have apache as a front end, or you could write a Servlet Filter.