码迷,mamicode.com
首页 > 其他好文 > 详细

getServletPath方法

时间:2014-09-27 18:00:10      阅读:403      评论:0      收藏:0      [点我收藏+]

标签:servletpath

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方法

标签:servletpath

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!