首页 > 其他 > 详细

Servlet路径

时间:2014-04-04 14:26:13      阅读:462      评论:0      收藏:0      [点我收藏+]

这里仅限OSGi注册的Servlet,WebServer里面应该有所不同。

http.registerServlet("/control/main", new ControlServlet(),  null, null);

 

http://localhost/control/main
ServletPath=/control/main
ContextPath=
RequestURI=/control/main
RequestURL=http://localhost/control/main
PathInfo=null

http://localhost/control/main/
ServletPath=/control/main
ContextPath=
RequestURI=/control/main/
RequestURL=http://localhost/control/main/
PathInfo=/

http://localhost/control/main/baidu
ServletPath=/control/main
ContextPath=
RequestURI=/control/main/baidu
RequestURL=http://localhost/control/main/baidu
PathInfo=/baidu

http://localhost/control/main/baidu/
ServletPath=/control/main
ContextPath=
RequestURI=/control/main/baidu/
RequestURL=http://localhost/control/main/baidu/
PathInfo=/baidu/

http://localhost/control/main/baidu?foo=xxx&bar=yyy#zzz
ServletPath=/control/main
ContextPath=
RequestURI=/control/main/baidu
RequestURL=http://localhost/control/main/baidu
PathInfo=/baidu

Servlet路径,布布扣,bubuko.com

Servlet路径

原文:http://www.cnblogs.com/eastson/p/3644814.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!