RE: URL mangling

2007-08-23 Thread Hehl, Thomas
The benefit is the client is already doing it this way and wants us to it
the same. The realities of the IT world.

Alas...

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 8:23 AM
To: Tomcat Users List
Subject: RE: URL mangling

Probably, I haven't done a lot of work with connectors.

Maybe a better question at this point is, if you're going to pass
everything to Tomcat anyway, is there still a benefit to using Apache
HTTPD as a front end?   Tomcat and the JVM have both made huge strides
in performance over the last few years and many of us are running full
fledged commercial apps with Tomcat running as a standalone.



On Thu, 2007-08-23 at 07:58, Hehl, Thomas wrote:
> Aha! Yes I am. Kinda makes sense that would be it. Thanks so much for
> thinking deep enough to ask the question.
> 
> I'm already forwarding everything that starts with my servlet. I coded all
> JSPs to use relative paths. Can I tell mod_jk to forward everything with a
> relative path to tomcat as well?
> 
> 
> 
> -Original Message-
> From: Ben Souther [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 22, 2007 9:10 PM
> To: Tomcat Users List
> Subject: RE: URL mangling
> 
> Yes, it should.
> Are you running tomcat behind Apache HTTPD or another web server to
> serve up static content?
> 
> 
> 
> 
> 
> 
> On Wed, 2007-08-22 at 09:17, Hehl, Thomas wrote:
> > /*
> > 
> > Shouldn't that get everything? I have a debug at the beginning of
doFilter
> > that prints out the request and I only get the original one, nothing for
> the
> > images and stuff.
> > 
> > 
> > -Original Message-
> > From: Ben Souther [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, August 22, 2007 9:03 AM
> > To: Tomcat Users List
> > Subject: Re: URL mangling
> > 
> > > So now I'm trying to see if there's a way to mangle these urls
> dynamically
> > > on the security server instead so that I can use the same JSP for
> > > everything. I tried using a filter, but that works ONLY for the actual
> > > request itself. Filters evidently don't see requests for images or
> > > stylesheets, etc.
> > > 
> > 
> > Filters see whatever their mappings tell them to see.
> > The url-mapping for filters works the same way as it does for servlets.
> > What mapping are you using?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL mangling

2007-08-23 Thread Ben Souther
Probably, I haven't done a lot of work with connectors.

Maybe a better question at this point is, if you're going to pass
everything to Tomcat anyway, is there still a benefit to using Apache
HTTPD as a front end?   Tomcat and the JVM have both made huge strides
in performance over the last few years and many of us are running full
fledged commercial apps with Tomcat running as a standalone.



On Thu, 2007-08-23 at 07:58, Hehl, Thomas wrote:
> Aha! Yes I am. Kinda makes sense that would be it. Thanks so much for
> thinking deep enough to ask the question.
> 
> I'm already forwarding everything that starts with my servlet. I coded all
> JSPs to use relative paths. Can I tell mod_jk to forward everything with a
> relative path to tomcat as well?
> 
> 
> 
> -Original Message-
> From: Ben Souther [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 22, 2007 9:10 PM
> To: Tomcat Users List
> Subject: RE: URL mangling
> 
> Yes, it should.
> Are you running tomcat behind Apache HTTPD or another web server to
> serve up static content?
> 
> 
> 
> 
> 
> 
> On Wed, 2007-08-22 at 09:17, Hehl, Thomas wrote:
> > /*
> > 
> > Shouldn't that get everything? I have a debug at the beginning of doFilter
> > that prints out the request and I only get the original one, nothing for
> the
> > images and stuff.
> > 
> > 
> > -Original Message-
> > From: Ben Souther [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, August 22, 2007 9:03 AM
> > To: Tomcat Users List
> > Subject: Re: URL mangling
> > 
> > > So now I'm trying to see if there's a way to mangle these urls
> dynamically
> > > on the security server instead so that I can use the same JSP for
> > > everything. I tried using a filter, but that works ONLY for the actual
> > > request itself. Filters evidently don't see requests for images or
> > > stylesheets, etc.
> > > 
> > 
> > Filters see whatever their mappings tell them to see.
> > The url-mapping for filters works the same way as it does for servlets.
> > What mapping are you using?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL mangling

2007-08-23 Thread Hehl, Thomas
Aha! Yes I am. Kinda makes sense that would be it. Thanks so much for
thinking deep enough to ask the question.

I'm already forwarding everything that starts with my servlet. I coded all
JSPs to use relative paths. Can I tell mod_jk to forward everything with a
relative path to tomcat as well?



-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 22, 2007 9:10 PM
To: Tomcat Users List
Subject: RE: URL mangling

Yes, it should.
Are you running tomcat behind Apache HTTPD or another web server to
serve up static content?






On Wed, 2007-08-22 at 09:17, Hehl, Thomas wrote:
> /*
> 
> Shouldn't that get everything? I have a debug at the beginning of doFilter
> that prints out the request and I only get the original one, nothing for
the
> images and stuff.
> 
> 
> -Original Message-
> From: Ben Souther [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 22, 2007 9:03 AM
> To: Tomcat Users List
> Subject: Re: URL mangling
> 
> > So now I'm trying to see if there's a way to mangle these urls
dynamically
> > on the security server instead so that I can use the same JSP for
> > everything. I tried using a filter, but that works ONLY for the actual
> > request itself. Filters evidently don't see requests for images or
> > stylesheets, etc.
> > 
> 
> Filters see whatever their mappings tell them to see.
> The url-mapping for filters works the same way as it does for servlets.
> What mapping are you using?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL mangling

2007-08-22 Thread Ben Souther
Yes, it should.
Are you running tomcat behind Apache HTTPD or another web server to
serve up static content?






On Wed, 2007-08-22 at 09:17, Hehl, Thomas wrote:
> /*
> 
> Shouldn't that get everything? I have a debug at the beginning of doFilter
> that prints out the request and I only get the original one, nothing for the
> images and stuff.
> 
> 
> -Original Message-
> From: Ben Souther [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 22, 2007 9:03 AM
> To: Tomcat Users List
> Subject: Re: URL mangling
> 
> > So now I'm trying to see if there's a way to mangle these urls dynamically
> > on the security server instead so that I can use the same JSP for
> > everything. I tried using a filter, but that works ONLY for the actual
> > request itself. Filters evidently don't see requests for images or
> > stylesheets, etc.
> > 
> 
> Filters see whatever their mappings tell them to see.
> The url-mapping for filters works the same way as it does for servlets.
> What mapping are you using?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL mangling

2007-08-22 Thread Hehl, Thomas
/*

Shouldn't that get everything? I have a debug at the beginning of doFilter
that prints out the request and I only get the original one, nothing for the
images and stuff.


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 22, 2007 9:03 AM
To: Tomcat Users List
Subject: Re: URL mangling

> So now I'm trying to see if there's a way to mangle these urls dynamically
> on the security server instead so that I can use the same JSP for
> everything. I tried using a filter, but that works ONLY for the actual
> request itself. Filters evidently don't see requests for images or
> stylesheets, etc.
> 

Filters see whatever their mappings tell them to see.
The url-mapping for filters works the same way as it does for servlets.
What mapping are you using?









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL mangling

2007-08-22 Thread Ben Souther
> So now I'm trying to see if there's a way to mangle these urls dynamically
> on the security server instead so that I can use the same JSP for
> everything. I tried using a filter, but that works ONLY for the actual
> request itself. Filters evidently don't see requests for images or
> stylesheets, etc.
> 

Filters see whatever their mappings tell them to see.
The url-mapping for filters works the same way as it does for servlets.
What mapping are you using?









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL mangling

2007-08-22 Thread Hehl, Thomas
I have two ways of running my webapp. One is your basic webapp where tomcat
answers the responses directly. The second runs security software the
forwards the requests to another tomcat instance. This second version was
mandated by our clients.

 

The second version is brand new to us and I'm now faced with the possibility
of having to update every JSP in our app so that form actions, images,
references to style sheets, etc. all point to a mangled URL that runs
through the security software instead of going at it directly. Relative
paths are of no use in this instance.

 

So now I'm trying to see if there's a way to mangle these urls dynamically
on the security server instead so that I can use the same JSP for
everything. I tried using a filter, but that works ONLY for the actual
request itself. Filters evidently don't see requests for images or
stylesheets, etc.

 

Any ideas? I was wondering if some sort of valve would be useful.

 

Thanks.

 

Thom Hehl
Sr. eJuror Architect

* Office (859) 277-8800 x 144

* [EMAIL PROTECTED]   
ACS, Inc.

Government Solutions

1733 Harrodsburg Road
Lexington, KY 40504-3617

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message and notify
sender via e-mail at [EMAIL PROTECTED]
  or by telephone at 859-277-8800 ext. 144.
Thank you.