Re: Forwarding based on URI's in Tomcat

2007-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: > "Christopher Schultz" <[EMAIL PROTECTED]> wrote in message >> action >> /mymodule/sexy* >> /mymodule/sexy >> >> That is, map both "/sexy*" and "/sexy" to the servlet. > > > Nope, "/sexy*" is an exact-ma

Re: Forwarding based on URI's in Tomcat

2007-08-01 Thread Bill Barker
"Christopher Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mon, > > Mon Cab wrote: >> /sexy* > > I believe that the pattern "/sexy*" does not match when the * matches > nothing. I think that * acts like + in a regu

Re: Forwarding based on URI's in Tomcat

2007-08-01 Thread Hassan Schroeder
On 8/1/07, Mon Cab <[EMAIL PROTECTED]> wrote: > and none of it seems to work. Honestly, this sounds like a job for UrlRewriteFilter -- Worth a look, anyway :-) -- Hassan Schroeder [EMAIL PROTECTED]

Re: Forwarding based on URI's in Tomcat

2007-08-01 Thread Mon Cab
I tried action /mymodule/sexy* /mymodule/sexy /sexy* /sexy and none of it seems to work. --- Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mon, > > Mon Cab wrote: > > /sexy* > > I believe that the pattern "/sexy*" does not

Re: Forwarding based on URI's in Tomcat

2007-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mon, Mon Cab wrote: > /sexy* I believe that the pattern "/sexy*" does not match when the * matches nothing. I think that * acts like + in a regular expression. You might want: action /mymodule/sexy* /mymodule/sexy That is

RE: Forwarding based on URI's in Tomcat

2007-08-01 Thread Mon Cab
I would rather do this by configuring Tomcat, than doing it programatically if posible. --- "Asensio, Rodrigo" <[EMAIL PROTECTED]> wrote: > Are those 2 different webapps ? > If yes, you have to be aware of session data, diff webapps do not > share > by default the session data. > > But basica

Re: Forwarding based on URI's in Tomcat

2007-08-01 Thread Mon Cab
I tried the following action *.do action /sexy* but got a 404 message: The requested resource (/mymodule/sexy) is not available. I also tried: action /mymodule/sexy* but I got the same error. --- David Delbecq <[EMAIL PROTECTED]> wrote:

RE: Forwarding based on URI's in Tomcat

2007-08-01 Thread Asensio, Rodrigo
Are those 2 different webapps ? If yes, you have to be aware of session data, diff webapps do not share by default the session data. But basically to do a client redirect you do this Response.sendRedirect("otherURl") >> this will change the url in the client browser To do a server redirect you

Re: Forwarding based on URI's in Tomcat

2007-08-01 Thread David Delbecq
In your web.xml, you can map /foo and /bar to struts servlet. However, i think i remember the struts servlet does not like to be mapped at several location. (/foo, /bar and *.do) You could also write your own servlet, that your map to /foo and /bar and which take th request url and does an intern