KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > tigris > scarab > cactus > SampleServlet


1 package org.tigris.scarab.cactus;
2
3 import javax.servlet.http.HttpServlet JavaDoc;
4 import javax.servlet.http.HttpServletRequest JavaDoc;
5
6 /**
7  * SampleServlet to be tested by the tests' test
8  *
9  */

10 public class SampleServlet extends HttpServlet JavaDoc
11 {
12     public void saveToSession(HttpServletRequest JavaDoc request)
13     {
14         String JavaDoc testparam = request.getParameter("testparam");
15         request.getSession().setAttribute("testAttribute", testparam);
16     }
17 }
18
Popular Tags