org.apache.jetspeed.portlet.helloworld
Class HelloWorld

java.lang.Object
  extended byjavax.portlet.GenericPortlet
      extended byorg.apache.jetspeed.portlet.helloworld.HelloWorld
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class HelloWorld
extends javax.portlet.GenericPortlet

This example portlet will display text

This is a test from hello.jsp
data/portletentityregistry.xml
The following defines the associates the portlet 5.1 to the portlet HelloPortlet in the PortletContainer HW_App.
   
     HW_App
     
       HW_App.HelloPortlet
      
   
 
data/portletregistry.xml
The following will include the portlet 5.3 in the fragment named P2.
   
       
   
 
Also make sure
container.jar
is in
WEB-INF/lib

Author:
paul

Field Summary
 
Fields inherited from class javax.portlet.GenericPortlet
 
Constructor Summary
HelloWorld()
           
 
Method Summary
 void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void doHelp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void init(javax.portlet.PortletConfig config)
           
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, processAction, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorld

public HelloWorld()
Method Detail

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Throws:
javax.portlet.PortletException

doEdit

public void doEdit(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Throws:
javax.portlet.PortletException
IOException

doHelp

public void doHelp(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Throws:
javax.portlet.PortletException
IOException

doView

public void doView(javax.portlet.RenderRequest request,
                   javax.portlet.RenderResponse response)
            throws javax.portlet.PortletException,
                   IOException
Throws:
javax.portlet.PortletException
IOException


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.