TechnoBuzz

A Techno Blog, mainly about Java

Hello World Portlet

From IBM:

WSAD Integration edition

First, this page has a link to the portal toolkit

Requirements: portlet-api.jar, wpsportlets.jar, wps.jar
Servlet functionality: j2ee.jar, dynacache.jar

javac -classpath %CLASSPATH% com.ibm.wps.samples.HelloWorld.java


import org.apache.jetspeed.portlet.*;
import java.io.*;
public class HelloWorld extends PortletAdapter {
public void init(PortletConfig portletConfig) throws UnavailableException
{
super.init( portletConfig );
}
public void doView( PortletRequest portletRequest, PortletResponse portletResponse )
throws PortletException, IOException
{
PrintWriter writer = portletResponse.getWriter();
writer.println(“

Hello Portal World!

“);
}
}

Developer Works On Portals

Portlet Redbook

Advertisements

October 11, 2004 - Posted by | Portals

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: