Show TOC

Writing the CodeLocate this document in the navigation structure

Use

A portal component is, essentially, a Java class that produces HTML content , which is returned in the response. In this step, we create the HTML content.

Procedure
  1. In the Package Explorer, double-click the myPortalComp Java class. The Java editor is displayed.

  2. In the Java editor, add the following code to the doContent() method:

            response.write("HelloWorld");
         
Result

The component will now display HelloWorld when it is run in the portal.