10.2. Modifying the Java source
Portlets of both APIs follow the MVC design patterns and they use two phase processing. Both have an action and a render phase. the method names are different and all the objects are also different.
10.2.1. Package
The package declarations need to be changed from the IBM por tlet API to JSR 168 packages. You can manually change the imports or you can modify the class names and then perform an “Organize Imports” in Rational Application Developer.
Change:
import org.apache.jetspeed.portlet.*; import org.apache.jetspeed.portlet.event.*;
to:
import javax.portlet.*;
For JSR 168 portlets, you do not have to implement and action listener. There is no equivalent package for org.apache.jetspeed.portlet.event. If you are ...
Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.