Developing Custom Portlets
This section provides fully developed samples of custom portlets. The chapter includes complete code for portlet deployment descriptors, JSP pages, resource files, and action classes as applicable for each portlet. The following sample portlets are provided:
Welcome is a simple display portlet which has no interactive capabilities. Because it is internationalized, it displays text in the user's locale (language and country) preference.
FormExample is an interactive form portlet that accepts free-form input and displays it back to the user.
DisplayURL is a portlet template (also referred to as an editable portlet), which is a portlet from which users can create their own portlet instances. The DisplayURL portlet template, which is delivered with the portal Web application, enables users to create portlets that return HTML content from any URL.
HelloUserWikExample is a Web application that is enabled by SAS Foundation Services. The application displays the string
Hello user, where user is the name of the user who is logged on to the portal Web application.
HelloUserRemotePortlet is a remote portlet that executes the sample Web application HelloUserWikExample and displays the name of the user who is logged on to the portal Web application.
For detailed information about a specific portlet development task, see Development Steps. For general information about creating various types of portlets, see Use Cases.