I want to redirect JSP page from one servlet.
All JSP pages are under Web Content
. not under Web-INF
.
I have a problem of calling that JSP pages. I got 404 errors. problem with path.
How can I call jsp pages under Web Content?
ServletContext context = getServletContext();
RequestDispatcher dispatcher = context.getRequestDispatcher("/thankYou.jsp");
dispatcher.forward(request,response);
Thanks ahead.
PROBLEM SOLVED !
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…