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.
In the Package Explorer, double-click the myPortalComp Java class. The Java editor is displayed.
In the Java editor, add the following code to the doContent() method:
response.write("HelloWorld");
The component will now display HelloWorld when it is run in the portal.