Two beans are demonstrated in the Helloworld sample and are described below. The source code for each of these bean classes can be found at <ATG10dir>/Portlet/helloworld/src.

HelloWorld Servlet Bean

The HelloWorld servlet bean is a session scoped bean. It has a single property named message. The message property is used to hold the messaged rendered in the portlet. The value of the message property defaults to “Hello World”.

HelloWorldFormHandler Servlet Bean

The HelloWorldFormHandler servlet bean is a request scoped bean. It is used to modify the message property of the HelloWorld servlet bean. For more information about servlet beans, see the ATG Page Developer's Guide

Note how the handleUpdate method in the HelloWorldFormHandler takes a PortletRequest and a PortletResponse:

handleUpdate(PortletRequest pRequest, PortletResponse pResponse)