1 20 21 import org.apache.struts.action.Action; 22 import org.apache.struts.action.ActionMapping; 23 import org.apache.struts.action.ActionForm; 24 import org.apache.struts.action.ActionForward; 25 26 import javax.servlet.http.HttpServletRequest ; 27 import javax.servlet.http.HttpServletResponse ; 28 29 public class TestModuleAction 30 extends 31 Action { 32 33 35 37 39 41 public ActionForward execute( 42 ActionMapping mapping, 43 ActionForm form, 44 HttpServletRequest request, 45 HttpServletResponse response ) 46 throws 47 Exception { 48 49 response.getWriter().print( "This is TestModuleAction. Site context id is " + com.methodhead.sitecontext.SiteContext.getContext( request ).getInt( "id" ) + ".\n" ); 50 51 return null; 52 } 53 54 56 } 58 | Popular Tags |