Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dispatching to correct Servlet once portlet is loaded

 
Gerardo Ramirez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic