A method for designing object-oriented software for implementing portlets,
and an associated computer system and computer program product. The
portlets are available to a user of the software who clicks on a link of
a first page to identify an action object of an Action class and a state
object of a State class. The software includes the State class, the
Action class, and program code. The State class includes a method for
displaying a view of a page. The Action class includes an actionPerformed
method for performing an action and a setState method for setting the
state object into the session. The program code is adapted to execute:
the actionPerformed method of the action object to perform the action;
the setState method of the second page.