Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread pantichd
Here is what I came up with to get around this issue. Intead of using this: String requestedUrl = request.getServletPath(); I have started using this: String requestedUrl = hreq.getRequestURI().replaceAll(hreq.getContextPath(), ""); Does anyone know if there are any other issues (alwa

Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread pantichd
Hmm, that's a great tip. Wasn't aware of that. Now I just need to find out where that invoker servlet is defined on the Netweaver platform. Thanks! Scott Van Wart-2 wrote: > > pantichd wrote: >> Hello, >> >> Sorry for posting this in Struts mailing list but I can't seem to get an >> answer on

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread pantichd
The name of the app is 'app1' The 'servlet' part of the address is required by the App Server (or configurable somewhere that I don't know about). By the way, we're using SAP's Netweaver Developer Studio. As for the web.xml setting... The only thing I have in web.xml is this Servlet

Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-25 Thread Martin Gainty
s Mailing List" Sent: Thursday, August 24, 2006 9:05 PM Subject: RE: [OT] request.getServletPath() val not same in Filter & Servlet > First, is '/servlet' the name of your webapp? If so then this might just > make sense. Why? > > The HttpServletRequest.getServletPath()

Re: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-24 Thread Scott Van Wart
pantichd wrote: Hello, Sorry for posting this in Struts mailing list but I can't seem to get an answer on any other discussion groups. I've always had great results getting good answers here so here goes... I have a Filter in my app that uses the request.getServletPath() method to get the name

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-24 Thread David Friedman
First, is '/servlet' the name of your webapp? If so then this might just make sense. Why? The HttpServletRequest.getServletPath() object is described to: > Returns the part of this request's URL that calls the servlet. In a filter, that is the mapping '/*' which as you wrote resulted in '/servl

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-24 Thread pantichd
David, Maybe I'm missing something in your reply but I don't think I'm doing either a forward or a dispatch. Here's the scenario... - Simple app has (let's say) 10 pages - A couple of pages are jsps using Struts forms. These are considered 'secure' pages and require a person to be logged in - Som

RE: [OT] request.getServletPath() val not same in Filter & Servlet

2006-08-23 Thread David Friedman
id -Original Message- From: pantichd [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 8:29 AM To: user@struts.apache.org Subject: [OT] request.getServletPath() val not same in Filter & Servlet Hello, Sorry for posting this in Struts mailing list but I can't seem to

[OT] request.getServletPath() val not same in Filter & Servlet

2006-08-23 Thread pantichd
Hello, Sorry for posting this in Struts mailing list but I can't seem to get an answer on any other discussion groups. I've always had great results getting good answers here so here goes... I have a Filter in my app that uses the request.getServletPath() method to get the name of the page being