struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Zammetti" <fzamm...@hotmail.com>
Subject Re: How to get requested path?
Date Thu, 03 Jun 2004 14:54:48 GMT
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" <mgainty@hotmail.com>
>Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
>To: "Struts Users Mailing List" <user@struts.apache.org>
>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" <fzammett@hotmail.com>
>To: <user@struts.apache.org>
>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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>

_________________________________________________________________
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message