Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Hey Guys, I had a question regarding Tomcat configuration. I see over and over folks building web apps that write custom code responsible for baking in URL parameters to some path. For example, let's say I have a web service located at: http://myhost/books that by default returns a listing

RE: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Caldarale, Charles R
From: Mattmann, Chris A (388J) [mailto:chris.a.mattm...@jpl.nasa.gov] Subject: Is there a way to bake in URL parameters to a URL path? What I would like to be able to do is to set up, via configuration, the ability to map a new URL, say: http://myhost/fictionbooks To

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat proper. It would seem to be a very useful tool to include. An ALv2 licensed type of filter that does things like the URLRewrite Filter. Another

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Tim Funk
While useful ... I would conjecture that things like this eventually undergo feature creep and over time would turn into http://www.tuckey.org/urlrewrite/ -Tim On Wed, Aug 24, 2011 at 11:14 AM, Mattmann, Chris A (388J) chris.a.mattm...@jpl.nasa.gov wrote: Thanks for your reply Chuck. It

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Hi Tim, On Aug 24, 2011, at 8:55 AM, Tim Funk wrote: While useful ... I would conjecture that things like this eventually undergo feature creep and over time would turn into http://www.tuckey.org/urlrewrite/ Thanks. That's entirely possible, but on the other end of the spectrum, if you

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Terence M. Bandoian
On 1:59 PM, Mattmann, Chris A (388J) wrote: Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat proper. It would seem to be a very useful tool to include. An ALv2 licensed type of filter that does

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 10:56 AM, Mattmann, Chris A (388J) wrote: For example, let's say I have a web service located at: http://myhost/books Your REST guys are a fun bunch :) The web service is just backed by a Java Servlet Okay. I get my JSON

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 12:09 PM, Mattmann, Chris A (388J) wrote: [O]n the other end of the spectrum, if you scare away people who are simply trying to do what I'm trying to do with all of the flexibility (and complexity) from a full-featured URL

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Thanks Terrence! Cheers, Chris On Aug 24, 2011, at 11:27 AM, Terence M. Bandoian wrote: On 1:59 PM, Mattmann, Chris A (388J) wrote: Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Thanks Chris for the advice. Cheers, Chris On Aug 24, 2011, at 11:26 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 10:56 AM, Mattmann, Chris A (388J) wrote: For example, let's say I have a web service located at: http://myhost/books

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
On Aug 24, 2011, at 11:32 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 12:09 PM, Mattmann, Chris A (388J) wrote: [O]n the other end of the spectrum, if you scare away people who are simply trying to do what I'm trying to do with all of

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Pid
On 24/08/2011 21:21, Mattmann, Chris A (388J) wrote: Thanks Chris for the advice. Or people use an MVC framework of some sort to map URLs to methods. p Cheers, Chris On Aug 24, 2011, at 11:26 AM, Christopher Schultz wrote: Chris, On 8/24/2011 10:56 AM, Mattmann, Chris A (388J)