Show TOC

Procedure documentationWriting the Code Locate this document in the navigation structure

 

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:

Syntax Syntax

  1. response.write("HelloWorld");
End of the code.

Result

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