1 package org.springframework.web.struts;2 3 import javax.servlet.http.HttpServletRequest ;4 import javax.servlet.http.HttpServletResponse ;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 Hoeller15 * @since 09.04.200416 */17 public class TestAction extends Action implements BeanNameAware {18 19 private String beanName;20 21 public void setBeanName(String beanName) {22 this.beanName = beanName;23 }24 25 public ActionForward execute(ActionMapping mapping, ActionForm form,26 HttpServletRequest request, HttpServletResponse response){27 return new ActionForward(this.beanName);28 }29 30 }31