1 5 6 13 package org.exoplatform.services.portletcontainer.test.portlet; 14 15 import javax.portlet.*; 16 import java.io.IOException ; 17 import java.io.PrintWriter ; 18 19 public class HelloWorldPortlet2 extends GenericPortlet { 20 21 public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) 22 throws PortletException, IOException { 23 System.out.println("In processAction method of HelloWorldPortlet2..."); 24 } 25 26 protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { 27 renderResponse.setContentType("text/html"); 28 PrintWriter w = renderResponse.getWriter(); 29 w.println("Hello World 2"); 30 } 31 32 protected void doEdit(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { 33 renderResponse.setContentType("text/html"); 34 System.out.println("In doEdit method of HelloWorldPortlet2..."); 35 } 36 37 } 38 | Popular Tags |