Foren
request.getRequestDispatcher doesnt work with servlet module
Jignesh Vachhani, geändert vor 7 Jahren.
request.getRequestDispatcher doesnt work with servlet module
Liferay Master Beiträge: 803 Beitrittsdatum: 10.03.08 Neueste Beiträge
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 ?