This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
Author

Dispatching to correct Servlet once portlet is loaded

Gerardo Ramirez
Greenhorn

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?

Regards,

Gerardo Ramirez
Sanjay Kannan
Greenhorn

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: http://aspose.com/file-tools
 
subject: Dispatching to correct Servlet once portlet is loaded