Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Configuration of ServletTester to forward to a JSP

I am trying to test my servlet witch does a getRequestDispatcher.forward to jsp file, but jetty always returns
404, page not found. My setup code looks like this:

tester = new ServletTester();
tester.addServlet(MyServlet.class,"/MyServlet");
tester.setResourceBase("src/main/webapp");

What i have to do to jetty locate the webapp directory?
Fausto Carvalho Marques Silva



Back to the top