I want to get my current URL in JSP

Thread Solved

Join Date: May 2006
Posts: 60
Reputation: kaushik259106 is an unknown quantity at this point 
Solved Threads: 0
kaushik259106 kaushik259106 is offline Offline
Junior Poster in Training

I want to get my current URL in JSP

 
0
  #1
Apr 2nd, 2008
Is it possible to get the current URL in my JSP page.

Say i open a site "http://abc.com/page1.jsp"
I want to display it in page1.jsp the total url as "http://abc.com/page1.jsp" If yes please tell me the step!



Thanks in Advance
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 60
Reputation: kaushik259106 is an unknown quantity at this point 
Solved Threads: 0
kaushik259106 kaushik259106 is offline Offline
Junior Poster in Training

Re: I want to get my current URL in JSP

 
0
  #2
Apr 2nd, 2008
Any one? is that not possible..?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: I want to get my current URL in JSP

 
0
  #3
Apr 2nd, 2008
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 60
Reputation: kaushik259106 is an unknown quantity at this point 
Solved Threads: 0
kaushik259106 kaushik259106 is offline Offline
Junior Poster in Training

Re: I want to get my current URL in JSP

 
0
  #4
Apr 4th, 2008
any example would be helpful! Pls
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,191
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: I want to get my current URL in JSP

 
0
  #5
Apr 4th, 2008
Originally Posted by kaushik259106 View Post
any example would be helpful! Pls
Does the getRequestURL() need any example?
Reconstructs the URL the client used to make the request.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: I want to get my current URL in JSP

 
0
  #6
Apr 4th, 2008
classic example of "gif mi zu koduz", aka a homework kiddo that can't be bothered to do its own homework.
It probably didn't even bother to read the documentation I supplied, far too much trouble.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,191
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: I want to get my current URL in JSP

 
0
  #7
Apr 4th, 2008
I guess he should realy show more interest in this case but he may be too busy with his blog. <offTopic>Interesting things, but not coolest in my opinion</offTopic> I hope he will at least say thank you
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 60
Reputation: kaushik259106 is an unknown quantity at this point 
Solved Threads: 0
kaushik259106 kaushik259106 is offline Offline
Junior Poster in Training

Re: I want to get my current URL in JSP

 
0
  #8
Apr 10th, 2008
Originally Posted by jwenting View Post
classic example of "gif mi zu koduz", aka a homework kiddo that can't be bothered to do its own homework.
It probably didn't even bother to read the documentation I supplied, far too much trouble.
Originally Posted by peter_budo View Post
I guess he should realy show more interest in this case but he may be too busy with his blog. <offTopic>Interesting things, but not coolest in my opinion</offTopic> I hope he will at least say thank you

bro thanks a lot.. was out of station for some days so wasn't replying.. thanks again... Sorry for late reply..
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC