1 22 package org.jboss.injbossaop.web; 23 24 import java.io.IOException ; 25 26 import javax.servlet.ServletException ; 27 import javax.servlet.http.HttpServlet ; 28 import javax.servlet.http.HttpServletRequest ; 29 import javax.servlet.http.HttpServletResponse ; 30 31 import org.jboss.injbossaop.lib.ExampleValue; 32 33 38 public class BasicExampleServlet extends HttpServlet { 39 40 public void service(HttpServletRequest request, HttpServletResponse response) 41 throws ServletException , IOException { 42 String s = request.getParameter("field1"); 43 44 System.out.println("**** BasicExampleServlet.service()"); 45 request.getSession().setAttribute("exampleValue", new ExampleValue(s)); 46 request.getRequestDispatcher("/index.jsp").forward(request, response); 47 } 48 } 49 | Popular Tags |