url:同一资源定位符
uri:同一资源标志符

url定位客户端连接到服务器所需要的信息,如
http://www.csdn.net
http://tcc.com:8080/servlet/logon?name=zhangsan&addr=tttt
完整构成
<protocol>://<servername>[:port]/<url-path>[?query-string]

uri是url的一部分,没有域名和查询字符串,即域名之后查询字符串之前所有的信息,用于制定资源。

例如,对于请求地址
http://java.sun.com/products/servlet/index.html?id=09

url--->http://java.sun.com/products/servlet/index.html?id=09
uri--->/products/servlet/index.html



url是完整的地址
uri是相对于当前context的地址

posted on 2006-06-07 21:41  冰羽  阅读(204)  评论(0)    收藏  举报