> -----Original Message-----
> From: Anuj Agrawal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 01, 2004 11:58 AM
> To: Tag Libraries Users List
> Subject: Re: finding current page's URL
> 
> 
> I was looking for a way to do it via taglib, not using scriptlets.  Did
> i misunderstand your suggestion?

You can get the values Serge referred to through JSTL as well.

  <c:set var="url" value="${pageContext.request.requestURL}"/>
  <c:set var="qs" value="${pageContext.request.queryString}"/>

--
Martin Cooper


> Thanks.
> Anuj.
> 
> --- Serge Knystautas <[EMAIL PROTECTED]> wrote:
> > Anuj Agrawal wrote:
> > > This may be a rather simple question.  But i couldn't find any info
> > > online (maybe i'm looking in the wrong places).
> > > 
> > > I'd like my jsp page to be able to access it's URL.  What i mean is
> > > this:
> > > 
> > > If i arrived at test.jsp by going to
> > > http://mydomain.com/test.jsp?id=1&s=2, then i would like to know
> > how to
> > > display the full url (http://mydomain.com/test.jsp?id=1&s=2) on the
> > > page or at least have access to it in some variable.
> > 
> > The servlet spec would be useful for this.  You'd want to start with 
> > request.getRequestURL(), and then add request.getQueryString() if
> > there 
> > was one.
> > 
> > -- 
> > Serge Knystautas
> > President
> > Lokitech >> software . strategy . design >> http://www.lokitech.com
> > p. 301.656.5501
> > e. [EMAIL PROTECTED]
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway 
> http://promotions.yahoo.com/design_giveaway/
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to