Forums de discussion
request.getRequestDispatcher doesnt work with servlet module
Jignesh Vachhani, modifié il y a 7 années.
request.getRequestDispatcher doesnt work with servlet module
Liferay Master Publications: 803 Date d'inscription: 10/03/08 Publications récentes
Hi Friends,
Below both the statements are not working in Liferay servlet osgi module.
request.getRequestDispatcher("/detail.jsp").forward(request, response);
OR
RequestDispatcher requestDispatcher =_servletContext.getRequestDispatcher("/detail.jsp");
requestDispatcher.forward(request, response);
It gives NUll Pointer exception.
Any clue why ?
Below both the statements are not working in Liferay servlet osgi module.
request.getRequestDispatcher("/detail.jsp").forward(request, response);
OR
RequestDispatcher requestDispatcher =_servletContext.getRequestDispatcher("/detail.jsp");
requestDispatcher.forward(request, response);
It gives NUll Pointer exception.
Any clue why ?