getServletContext(),getRealPath("/book_img")表示什么

String savepath=this.getServletContext().getRealPath("/book_img");中getServletContext()表示什么,getRealPath("/book_img")表示什么,还有ServletConfig是什么,假如获得的路径为D:\software\apache-tomcat-6.0.35\webapps\bookstore\book_img getServletContext()表示这个地址哪一部分,getRealPath("/book_img")表示这个地址哪个部分,ServletConfig这地址又表示了什么呢

servletconfig:一个servlet的配置对象,用来给servlet容器传递信息到servlet,在Servlet初始化的时候。
getServletContext:为servletconfig中的方法 获取ServletContext对象
getRealPath:得到项目下webroot/

这个路径 是在服务器上的

http://blog.sina.com.cn/s/blog_639dde240100mzvj.html