wood burning stoves 2.0*
The moose likes JSP and the fly likes difference between getURI and getURL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "difference between getURI and getURL?" Watch "difference between getURI and getURL?" New topic
Author

difference between getURI and getURL?

avinashguru prasad
Greenhorn

Joined: Nov 23, 2012
Posts: 14
Hi,

Could anyone explain to me what the difference is between the request.getURI() and request.getURL() methods?

I'm not entirely sure what the difference is between a uri and url?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.

Using a title of "servlets" in a forum completely dedicated to questions on Servlets isn't going to attract the attention of those who can best help you.

I have changed the subject to one that's more suitable; please use it as an example for future posts.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Please see the JavaDoc for HttpServletRequest (⇐ that's a link). It will explain what each method does.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between getURI and getURL?
 
Similar Threads
Difference between Heap memory size and RAM
refrence instance and object ?
deploying and running web application in the home pc
length and size
JDK