1 5 6 package org.exoplatform.services.portletcontainer.test.portlet; 7 8 import java.io.IOException ; 9 import java.io.PrintWriter ; 10 11 import javax.portlet.GenericPortlet; 12 import javax.portlet.PortletException; 13 import javax.portlet.RenderRequest; 14 import javax.portlet.RenderResponse; 15 16 20 public class PortletToTestGetTitle extends GenericPortlet { 21 22 protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) 23 throws PortletException, IOException { 24 String title = getTitle(renderRequest); 25 26 System.out.println("TITLE "+title); 27 28 renderResponse.setContentType("text/html"); 29 PrintWriter w = renderResponse.getWriter(); 30 w.println("Everything is ok"); 31 } 32 33 } 34 | Popular Tags |