jQuery in Action, 3rd edition
The moose likes Portals and Portlets and the fly likes Portlet-servlet communication with JSR168 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Portlet-servlet communication with JSR168 ?" Watch "Portlet-servlet communication with JSR168 ?" New topic

Portlet-servlet communication with JSR168 ?

Dhiren Joshi
Ranch Hand

Joined: Dec 09, 2003
Posts: 463
Is This possible?
If I want a portlet to communicate with a servlet like this..
StringBuffer buf = new StringBuffer(request.getContextPath()+response.encodeURL("/SomeServlet"));
log("BasePortlet jsp file name=" + buf.toString() + "Trying to get to SERVLET PDF/SERVLET"
PortletRequestDispatcher rd=getPortletContext().getRequestDispatcher(
Is this possible from inside the portlet. ?
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I don't see anything related to Websphere here. And we do have a forum specifically for JSR-168 things (Portals and Portlets), so I will move the question there.
Ali Hassaan
Ranch Hand

Joined: May 16, 2001
Posts: 103
i dont have a clue for proving that whether its possible or not.. but as far as i know... portlet executes in portlet container and servlets in a servlet container.. so calling servlet to a portlet is i think not possible..
Chad McGowan
Ranch Hand

Joined: May 10, 2001
Posts: 265
Yes, this is possible. You can use the portlet request dispatcher to forward to a jsp or a servlet.
I agree. Here's the link: http://aspose.com/file-tools
subject: Portlet-servlet communication with JSR168 ?
It's not a secret anymore!