ServletTest configuration setResourceBase to locate JSP

I have a servlet which do a getServletConfig().getServletContext().getRequestDispatcher("index.jsp") .forward(request, response) and Jetty is not locating the index.jsp file. I have set the "setResourceBase" to the location of the jsp, but it does not works. Anyone figure the problem?

Upvotes: 0

Views: 167

Answers (1)

Sudhakar
Sudhakar

Reputation: 4873

did you set

context.setServingResources(true);

Upvotes: 1

Related Questions