KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > web > struts > TestAction


1 package org.springframework.web.struts;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4 import javax.servlet.http.HttpServletResponse JavaDoc;
5
6 import org.apache.struts.action.Action;
7 import org.apache.struts.action.ActionForm;
8 import org.apache.struts.action.ActionForward;
9 import org.apache.struts.action.ActionMapping;
10
11 import org.springframework.beans.factory.BeanNameAware;
12
13 /**
14  * @author Juergen Hoeller
15  * @since 09.04.2004
16  */

17 public class TestAction extends Action implements BeanNameAware {
18
19     private String JavaDoc beanName;
20
21     public void setBeanName(String JavaDoc beanName) {
22         this.beanName = beanName;
23     }
24
25     public ActionForward execute(ActionMapping mapping, ActionForm form,
26                                                              HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response){
27         return new ActionForward(this.beanName);
28     }
29
30 }
31
Popular Tags