1 16 package org.apache.pluto.portalImpl.portlet.test; 17 18 import java.io.IOException ; 19 20 import javax.servlet.GenericServlet ; 21 import javax.servlet.ServletException ; 22 import javax.servlet.ServletRequest ; 23 import javax.servlet.ServletResponse ; 24 25 31 public class DispatcherRenderParameterTestServlet extends GenericServlet { 32 33 public DispatcherRenderParameterTestServlet() { 34 35 } 36 37 public void service(ServletRequest req, ServletResponse res) 38 throws ServletException , IOException { 39 String valA = req.getParameter(DispatcherRenderParameterTest.KEY_A); 40 String valB = req.getParameter(DispatcherRenderParameterTest.KEY_B); 41 if(DispatcherRenderParameterTest.VAL_A.equals(valA) && DispatcherRenderParameterTest.VAL_B.equals(valB)) { 42 req.setAttribute(DispatcherRenderParameterTest.RESULT_KEY, Boolean.TRUE); 43 } 44 } 45 46 public String getServletInfo() { 47 return "Dispather Render Parameter Include Servlet"; 48 } 49 50 } 51 52 | Popular Tags |