PageRenderTime 53ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/web/DRCP/src/com/bluesky/drcp/presentation/web/ShowSomethingAction.java

http://drcp.googlecode.com/
Java | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 4acd60145349c36d54725e54df91c010 MD5 | raw file
 1package com.bluesky.drcp.presentation.web;
 2
 3import javax.servlet.http.HttpServletRequest;
 4import javax.servlet.http.HttpServletResponse;
 5
 6import org.apache.struts.action.Action;
 7import org.apache.struts.action.ActionForm;
 8import org.apache.struts.action.ActionForward;
 9import org.apache.struts.action.ActionMapping;
10
11public class ShowSomethingAction  extends Action {
12	public ActionForward execute(ActionMapping mapping, ActionForm form,
13			HttpServletRequest request, HttpServletResponse response)
14			throws Exception {
15		
16		String age = request.getParameter("age");
17		request.setAttribute("name","jack");
18		request.setAttribute("age",age);
19		
20		return mapping.findForward("success");
21		
22	}
23}