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
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
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
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()
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
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
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
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
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
9 matches
Mail list logo