• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can portlet internally call servlets using RequestDisptachers ?

 
Ranch Hand
Posts: 463
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
, 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.

Thanks
Dhiren
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic