求教,我想為jsp做個(gè)請(qǐng)求轉(zhuǎn)發(fā)器, urlPatterns = "/*", 攔截所有請(qǐng)求, 發(fā)現(xiàn)req.getRequestDispatcher("/jsp/hello.jsp").forward(req, resp);函數(shù)總是再次被該攔截器攔截,然后瀏覽器就沒有辦法訪問到j(luò)sp文件,該怎么既使DispatherServlet攔截所有請(qǐng)求,又使得瀏覽器能夠訪問到j(luò)sp文件呢??刂婆_(tái)打印 :mothod : GET
PathInfo : /jsp/hello.jsp
ContextPath : /chapter1
getRequestURL : http://localhost:8080/chapter1/jsp/hello.jsp
Servlet中 利用service()方法轉(zhuǎn)發(fā)所有請(qǐng)求, 求教該如何正確訪問jsp文件
HUH函數(shù)
2018-08-23 10:06:02