servletContext « Liferay « JSP-Servlet Q&A





1. [solved] Problem getting servletContext from portletBag / calling a servlet    liferay.com

Hi there, I'm trying to call a servlet from my portlet using a requestDispatcher. I added the required entries to web.xml and wrote my servlet, which resides in the same context as my portlet. What I've learned from reading through some websites is, that the code to actually call the servlet should look like this (this is a partial copy of ...