To start coding your first (portable) portlet, you should :

  1. Get the portlet.jar
  2. try to run create a portlet, that means a class that implements the "Portlet" interface. Eclipse can give you a hint on that : right click->source->override/implement methods...

From there you get the following code :

package com.mycompany.portlet; import java.io.IOException; import javax.portlet.*;

public class IntrospectionPortlet implements Portlet {

public void destroy() { }

public void init(PortletConfig arg0) throws PortletException { }

public void processAction(ActionRequest arg0, ActionResponse arg1) throws PortletException, IOException { }

public void render(RenderRequest arg0, RenderResponse arg1) throws PortletException, IOException { } }