留言板
request.getRequestDispatcher doesnt work with servlet module
Jignesh Vachhani,修改在7 年前。
request.getRequestDispatcher doesnt work with servlet module
Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
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 ?