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
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)
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
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.:
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
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
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
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
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
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.
10 matches
Mail list logo