Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can portlet internally call servlets using RequestDisptachers ?

Dhiren Joshi
Ranch Hand
Posts: 463
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
PortletRequestDispatcher prd=getPortletContext().getRequestDispatcher(
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!