File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Dispatching to correct Servlet once portlet is loaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Dispatching to correct Servlet once portlet is loaded" Watch "Dispatching to correct Servlet once portlet is loaded" New topic

Dispatching to correct Servlet once portlet is loaded

Gerardo Ramirez

Joined: Jul 25, 2006
Posts: 9
Using liferay, and the ajax sample, I have converted my existing web application to a portlet.

My problem now is that, I load my initial JSP, but, I am having a problem dispatching to the correct Servlet to execute the business logic of my web application. Which are the following three actions (delete a file, upload a file, or verify a file)I'm really trying to avoid implementing any major changes on my pr-existing Servlets and would like any suggestions on how to correctly dispatch using the doDisptach() method on my portlet class as the command handler. Any ideas will be of great help?


Gerardo Ramirez
Sanjay Kannan

Joined: Nov 25, 2007
Posts: 16
First thing is you won't be able to dispatch to a servlet based on your business logic in portlet. you'll have to follow the portlet lifecycle. My suggestion would be to reuse (if possible) whatever you have written and write a fresh portlet.
I agree. Here's the link:
subject: Dispatching to correct Servlet once portlet is loaded
Similar Threads
Spring portlet MVC forms, multipart data and servlets?
question about how to integrate struts web application into Weblogic Portal?
What is needed to use portals/portlets?
Integrating Billdesk in portlet Application
Problem in Deploying JSR168 Portlet in Apache Pluto1.1.7 with Tomcat 5.5.20