The GenericPortlet class provides a default implementation
for the Portlet interface.
It provides an abstract class to be subclassed to create portlets. A
subclass of GenericPortlet should override at least
one method, usually one of the following:
processAction, to handle action requests
doView, to handle render requests when in VIEW mode
doEdit, to handle render requests when in EDIT mode
doHelp, to handle render request when in HELP mode
init and destroy, to manage resources that are held for the life of
the servlet
Normally there is no need to override the render or the doDispatch
methods. Render handles render requests setting the title of the
portlet in the response and invoking doDispatch. doDispatch dispatches
the request to one of the doView, doEdit or doHelp method depending on
the portlet mode indicated in the request.
Portlets typically run on multithreaded servers, so please note that a
portlet must handle concurrent requests and be careful to synchronize
access to shared resources. Shared resources include in-memory data
such as instance or class variables and external objects such as
files, database connections, and network connections.
GenericPortletclass provides a default implementation for thePortletinterface.It provides an abstract class to be subclassed to create portlets. A subclass of
GenericPortletshould override at least one method, usually one of the following:Normally there is no need to override the render or the doDispatch methods. Render handles render requests setting the title of the portlet in the response and invoking doDispatch. doDispatch dispatches the request to one of the doView, doEdit or doHelp method depending on the portlet mode indicated in the request.
Portlets typically run on multithreaded servers, so please note that a portlet must handle concurrent requests and be careful to synchronize access to shared resources. Shared resources include in-memory data such as instance or class variables and external objects such as files, database connections, and network connections.