首页 > 其他 > 详细

getServletPath方法

时间:2014-09-27 17:24:41      阅读:333      评论:0      收藏:0      [点我收藏+]

getServletPath

java.lang.String getServletPath()
Returns the part of this request‘s URL that calls the servlet. This path starts with a "/" character and includes either the servlet name or a path to the servlet, but does not include any extra path information or a query string. Same as the value of the CGI variable SCRIPT_NAME.

This method will return an empty string ("") if the servlet used to process this request was matched using the "/*" pattern.

Returns:
String containing the name or path of the servlet being called, as specified in the request URL, decoded, or an empty string if the servlet used to process the request is matched using the "/*" pattern.

getServletPath方法

原文:http://blog.csdn.net/hephec/article/details/39612919

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