aspose file tools
The moose likes Portals and Portlets and the fly likes Calling a JSP/Servlet from a portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Calling a JSP/Servlet from a portlet" Watch "Calling a JSP/Servlet from a portlet" New topic
Author

Calling a JSP/Servlet from a portlet

pulijala hari
Ranch Hand

Joined: May 14, 2005
Posts: 70
Hi,

I want to call a jsp/servlet from a portlet.
JSP/Servlets will be in separate WAR file and i want to show them as a pop up window on top of the portlet and from there i want to go ahead with the servlet/jsp flow.

Can it be done? or Do i need to have the jsp/servlets in the same WAR file as portlets are in?

The main goal is to show the portlets only for the content and then onwards, the actual business flow will be using jsp/servlets with any good framework...

Any ideas....
Mahesh Desai
Ranch Hand

Joined: Apr 04, 2007
Posts: 76
Try this URL Servlet-Portlet
pulijala hari
Ranch Hand

Joined: May 14, 2005
Posts: 70
Mahesh,

I am trying to develop on JSR 168 and the code on IBM is IBM API.
Could you please help me out any others?
Actually i need to show a pop up jsp from a portlet and then i want to take the total control in the pop up jsp?

Thanks in advance..,
Sandeep Deb
Greenhorn

Joined: Jun 01, 2007
Posts: 15
Hi,
Remember that Portlets are extentions built on the Servlet framework. The Portlet API provides PortletRequestDispatcher interface to help delegate the creation of contents to Servlets and JSPs. Please note that the portlet request dispatcher can be used ONLY during render requests. Also, one of the differences between portlet and servlet request dispatcher is that the portlet request dispatcher doesn't have the forward method.

You can find an extremely lucid description on section PLT16 of the Portlet 1.0 Specifications.

Regards,
Sandeep
 
 
subject: Calling a JSP/Servlet from a portlet
 
Threads others viewed
How to display the results of one portlet in another portlet(JSR 168 )?
Jboss portal - attribute passing between 2 EAR files
calling a sevlet from a portlet
portlet session
More than one portlets in a single war file
MyEclipse, The Clear Choice