Can portlet internally call servlets using RequestDisptachers ?
posted 10 years ago
Can portlets internally call portlets (JSR168) . This is the code I added. StringBuffer buf = new StringBuffer(request.getContextPath()+response.encodeURL("/PdfServlet")); log("BasePortlet jsp file name=" + buf.toString() + "Trying to get to SERVLET PDF/SERVLET" , METHOD_NAME, CLASS_NAME); PortletRequestDispatcher prd=getPortletContext().getRequestDispatcher( buf.toString()); prd.include(request,response); What happens is this gets redirected into the Webcontent area so not sure how I can invoke my servlet from this RequestDispatcher.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads