Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a JSP/Servlet from a portlet

 
pulijala hari
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this URL Servlet-Portlet
 
pulijala hari
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic