struts1怎样由action跳到action的问题
来源:互联网 发布:gnuradio livecd linux 编辑:程序博客网 时间:2024/05/09 18:47
学回了struts2回过头来学struts1
有关action跳转的问题
EmployeeInfoAction类
/**
* 加载全部的方法
* @param mapping
* @param form
* @param request
* @param response
* @return
*/
public ActionForward loadList(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
EmployeeInfoForm employeeInfoForm = (EmployeeInfoForm) form;// TODO Auto-generated method stub
List<EmployeeInfo> employeeInfoList = this.employeeInfoServiceImpl.getAllEmployeeInfo();
//保存对象变量
request.setAttribute("employeeInfoList", employeeInfoList);
return mapping.findForward("success");
}
/**
* 执行删除的方法
* @param mapping
* @param form
* @param request
* @param response
* @return
*/
public ActionForward delete(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
EmployeeInfoForm employeeInfoForm = (EmployeeInfoForm) form;// TODO Auto-generated method stub
boolean result =this.employeeInfoServiceImpl.deleteEmployeeInfo(employeeInfoForm.getEmployeeInfo());
//重定向到action
return new ActionForward("/employeeInfo.do?employee=loadList");
}
实现的业务是:当用户删除一个数据的时候跳转到显示全部信息的页面
struts-config.xml
<action-mappings >
<action
attribute="employeeInfoForm"
name="employeeInfoForm"
path="/employeeInfo"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy"
cancellable="true"
parameter="employee">
<forward name="success" path="/index.jsp" />
<forward name="search" path="/search.jsp" />
</action>
</action-mappings>
- struts1怎样由action跳到action的问题
- 在struts1中由超链接跳转到action
- struts1 从action跳转到另一个action的方法
- 解决struts1中请求跳转到Action而非execute的问题
- Struts1 Action
- Servlet到action的问题
- struts1中几种常用的Action
- struts1中几种常用的Action
- struts1 action 之间的跳转
- struts2里面action跳action的问题
- struts1.2中从一个action跳转到另外一个action的方法
- 关于Struts1.2配置文件的Action访问路径相关问题
- jsp页面访问Struts1的Action路径问题
- struts1中form表单的action配置问题
- webwork_解决action跳转到action丢失参数的问题
- struts1.2中<action>parameter属性问题
- struts2 是怎样把数据传送到Action的
- 由Strust2 action执行两次发现的问题
- JSTL中的forEach的使用方法
- 使用T-SQL创建数据库的方法
- 使用myeclipse自带的DB Browser连接sqlServer2008数据库
- SQLServer映射hibernate到实体类
- struts1的iterator标签的使用方法
- struts1怎样由action跳到action的问题
- 使用javascript实现滚动特效
- jsp页面中实现分页效果
- 使用dos命令关闭计算机的方法
- final修饰引用时的问题
- java中产生随机数的方法
- SQL server 中的时间问题
- Hibernate+Spring中的声明式事务
- node to traverse cannot be null