aspose file tools*
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
Author

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"
, METHOD_NAME, CLASS_NAME);
PortletRequestDispatcher rd=getPortletContext().getRequestDispatcher(
buf.toString());
rd.include(request,response);
Is this possible from inside the portlet. ?
Thanks
Dhiren
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

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.
 
 
subject: Portlet-servlet communication with JSR168 ?