org.apache.jetspeed.portlet.helloworld
Class HelloWorld
java.lang.Object
javax.portlet.GenericPortlet
org.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
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 |
HelloWorld
public HelloWorld()
init
public void init(javax.portlet.PortletConfig config)
throws javax.portlet.PortletException
- Specified by:
init
in interface javax.portlet.Portlet
- Overrides:
init
in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
doEdit
public void doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Overrides:
doEdit
in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
IOException
doHelp
public void doHelp(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Overrides:
doHelp
in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
IOException
doView
public void doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
throws javax.portlet.PortletException,
IOException
- Overrides:
doView
in class javax.portlet.GenericPortlet
- Throws:
javax.portlet.PortletException
IOException
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.