result类型
dispatcher服务器跳转只能跳转到页面,html,或者jsp ,不能是action
redirect客户端跳转只能跳转视图也不能是action
chain可以跳转到另外的action
redirectAction客户端跳转到另外的action
梅花香自古寒来
result类型
dispatcher服务器跳转只能跳转到页面,html,或者jsp ,不能是action
redirect客户端跳转只能跳转视图也不能是action
chain可以跳转到另外的action
redirectAction客户端跳转到另外的action
梅花香自古寒来
Struts2的结果类型总共有以下几个(该文件在struts-default.xml)如果结果类型没声明,
Result 类型常见的 type 类型配置如下:dispatcher转发到 JSP 页面,和<jsp:forward page=””/>的效果一样,是
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M