aspose file tools*
The moose likes JSP and the fly likes Grab the entire current URI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Grab the entire current URI" Watch "Grab the entire current URI" New topic
Author

Grab the entire current URI

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 805
Hi,
Can anyone tell me how I can grab the current entire URL using JSP? Thanks.

Rob
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Have you looked at HttpServletRequest.getRequestURL?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 805
Thanks for the reply. I'm far from a JSP developer or anything, would you happen to have a small piece of code to show how I grab the value in-line in a JSP file? Thanks again.

Rob
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 805
Never mind, duh. Thanks.

Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Grab the entire current URI
 
Similar Threads
Vulnerability tracker
Life of Idempotency
Get Visiting Users Windows User Name
java batch job heap memory space problem
How do I get my current URL???