After the Servlet request is forwarded to the JSP. The relative path of the JSP will become the same as the relative path of the Servlet. Means that if jsp is going to locate its resource file, it should locate the path on the latter path, regardless of the file path of before jsp…在Servlet请求转发给JSP之后。JSP的相对路径会变得和Servlet的相对路径一样。意味着如果jsp要去定位它的资源文件,就要在之后的路径上去定位路径,不管jsp之前的文件路径是什么样
Key 2:
When positioning the source file and dependency package ,the path of JSP need to write as “./***” ------the relative path
solution 2:add the head before the original source path of JSP
Conclusionsolution 1:the principle of Path_ProblemKey 1:Afterwards Servlet forward the request to JSP,the relative path of JSP will become the same as the relative path of Servlet,which means if i...