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?
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.