1 package org.exoplatform.services.portletcontainer.test.portlet; 2 3 import javax.portlet.*; 4 import java.io.IOException ; 5 import java.io.PrintWriter ; 6 7 11 12 19 public class PortletToTestInvisibilityOfExtraParameters extends GenericPortlet{ 20 21 public void init(PortletConfig portletConfig) throws PortletException { 22 } 23 24 public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) 25 throws PortletException, IOException { 26 } 27 28 public void render(RenderRequest renderRequest, RenderResponse renderResponse) 29 throws PortletException, IOException { 30 renderResponse.setContentType("text/html"); 32 String param1 = renderRequest.getParameter("renderParam1"); 33 34 if(param1 != null) 35 throw new PortletException("getParameter does not work"); 36 37 PrintWriter w = renderResponse.getWriter(); 38 w.println("Everything is ok"); 39 } 40 41 public void destroy() { 42 } 44 45 46 } 47 | Popular Tags |