summaryrefslogtreecommitdiffstats
path: root/sandbox/thilina/geronimo_ACE/src/main/java/org/apache/tuscany/geronimoace/GeronimoACE.java
blob: 188a29958e861863d10dae1c2c3156670d4a6d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.apache.tuscany.geronimoace;

import javax.portlet.*;
import java.io.IOException;
import java.io.PrintWriter;

public class GeronimoACE extends GenericPortlet {
	public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
        // Set the response to read HTML
        response.setContentType("text/html;charset=UTF-8");

        // Required call for use of getWriter() and getPortletOutputStream()
        PrintWriter out = response.getWriter();
        out.println("<html><body>");
        out.println("Hello World");
        out.println("</body></html>");
        out.flush();
        out.close();
    }

}