File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Some Basic Queries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Some Basic Queries" Watch "Some Basic Queries" New topic

Some Basic Queries

Srinivasan Madhavan

Joined: Sep 21, 2004
Posts: 10

Can anyone help on the difference between URL Encoding and URL Encrypting? Also I am unable to difference between URI and URL.

Sami Sayeed
Ranch Hand

Joined: Oct 05, 2004
Posts: 39

URLEncoding is getting rid of the spaces and some special characters.
1.http://<domain>/<webapp-context>/hello.jsp?name=Sayeed Sami.
if you do url encoding it would look like the following
1.http://<domain>/<webapp-context>/hello.jsp?name=Sayeed+Sami.or %2b will be used for spaces in the values of the parameters.

2.If we encode the url the container can use urlrewriting in case of teh client disabling the cookies.

Thr uri means after the web context
hello.jsp but not the parameters.
Correct me if Iam wrong
Vishnu Munnangi
Ranch Hand

Joined: Sep 28, 2004
Posts: 114
Hi Eveyone,

I am not able to understand the differnce between URI and URL.

Can any one please explain the difference.

Thanks in Advance.
Francois Roland
Ranch Hand

Joined: Jul 24, 2003
Posts: 34

Here is what I found about your question on

The difference between the three is subtle. An URL refers to a Web page, including the scheme, but without a name location. An URN may also include the location of a code fragment. An URI refers to a Web page including the location of the code fragment, if one exists, and the scheme.

Because Web servers allow for default documents and do not require a scheme to retrieve a document, the subtle difference between an URL and an URN and an URI is hard to tell. URL is now used as the generic term.

Brown belt on
Vishnu Munnangi
Ranch Hand

Joined: Sep 28, 2004
Posts: 114
Thank you Francois for the reply. And now I understand the basic difference between URL, URN and URI.

I agree. Here's the link:
subject: Some Basic Queries
It's not a secret anymore!