Reference: http://www.blogjava.net/meil/archive/2006/10/10/73908.html
path: basically divided into relative path and absolute path.
relative path : The path relative to a base directory
Absolute Path : The path relative to the root directory
Server-side Address
Server-side Address "/" is relative to the address of your Web application, this address needs to be resolved on the server side, when the relative address in the JSP and servlet is relative to your Web application, that is, relative to the http://localhost:8080/webapp/
Request.getrequestdispatcher ("Address") in the servlet. ForWord ();
If address is the path to a JSP file,/represents the root directory, which is http://localhost:8080/webapp/
Client Address
The "/" of the relative address in all the HTML pages is relative to the server root directory, i.e. http://localhost:8080/
The Action property address of the form form in HTML contains the "/" that is relative to the server root directory
Example: action= "xx.jsp" or action= "/webapps/xx.jsp"
Brief Analysis : The difference between server root directory and Web application, because the client user requests a variety of different server-side software response, so the "/" in the request is relative to the server root directory, and for the specific Web server software internal address resolution, "/" Indicates that it is relative to the WebApp directory.
Javaweb Path Summary