Thanks Martin, it actually turns out that I needed request.getServletPath(). I completely forgot to look at what the request object offered, I was instead looking at the headers, parameters and attributes, and also seeing if the information was contained in RequestProcessor somewhere. I forgot the obvious (which is about what I expected). Thanks!

From: "Martin Gainty" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: How to get requested path?
Date: Thu, 3 Jun 2004 10:51:01 -0400

Frank-
the Path Follows the URI and precedes the Query String
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathTranslated()
Does this help??
Martin
----- Original Message -----
From: "Frank Zammetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 10:41 AM
Subject: How to get requested path?


> I've been looking through javadocs for a couple of hours and I haven't
found
> the answer to what seems like a straight-forward question...
>
> Assume I am writing a sublcass of RequestProcessor... how can I, in the
> processPreprocess() method, get the path that was called? In other words,
> if I submit a request to http://localhost:8181/wst/myAction.wst, how can I
> get a String with the value "myAction.wst"? I've checked all the request
> parameters and attributes and headers, it doesn't seem to be there, and I
> don't see anywhere that it's available in RequestProcessor, even though it
> seems like something that would be.
>
> Can anyone point out what I'm suire will wind up being the obvious answer?
> Thanks all!
>
> Frank
>
> _________________________________________________________________
> Getting married? Find great tips, tools and the latest trends at MSN Life
> Events. http://lifeevents.msn.com/category.aspx?cid=married
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Getting married? Find great tips, tools and the latest trends at MSN Life Events. http://lifeevents.msn.com/category.aspx?cid=married



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to