Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个执行 a 的 servlet,getServletConfig().getServletContext().getRequestDispatcher("index.jsp") .forward(request, response) 而 Jetty 没有找到该index.jsp文件。我已将“setResourceBase”设置为 jsp 的位置,但它不起作用。有人想出问题吗?
getServletConfig().getServletContext().getRequestDispatcher("index.jsp") .forward(request, response)
index.jsp
你设置了吗
context.setServingResources(true);