社区
Java
帖子详情
关于struts2的
kero123
2017-05-02 09:13:44
如题,struts2的<result type="chain">,执行Action后出现404错误,错误信息是没有返回值。
<result type="chain">该怎么用?
...全文
134
1
打赏
收藏
关于struts2的
如题,struts2的,执行Action后出现404错误,错误信息是没有返回值。 该怎么用?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
kero123
2017-05-02
打赏
举报
回复
已解决,需要加 name="xxx"
struts2
中常用
Result
类型(
type
)的用法和出现的问题
<
result
name="success"
type
="
chai
n">step2.action</
result
> </action> 在上面的配置中,
chai
n 将请求传递给 step2.action。
chai
n 的实现方式是通过创建一个代理对象,并执行指定的 action。例如: proxy = ...
struts2
中的
result
的
type
类型
struts2
跳转类型
result
type
chai
n dispatcher redirect redirect action
【Struts】strust.xml中<
result
type
="">所有类型详解
在默认时,<
result
>标签的
type
属性值是“dispatcher”(实际上就是转发,forward)。开发人员可以根据自己的需要指定不同的类型,如redirect、stream等。...这时
result
-
type
可以在stru...
struts.xml配置文件中
result
的语法:<
result
name=""
type
="">xxxxx
result
>
struts.xml配置文件中
result
的语法:...
Chai
n
Result
-->
type
="
chai
n" 用来处理Action链 Dispatcher
Result
-->
type
="dispatcher" 用来转向页面,通常处理JSP FreeMarker
Result
-->
type
="freemarker" 处理FreeMark
struts2
之
type
=”
chai
n“
1 在
struts2
.xml中,
result
可以通过不同的name名称来跳转到不同的jsp页面去。但是同时也容许设置,跳转到别的action中去。需要进行配置。在
result
标签中设置
type
="
chai
n"。这表示是一个动作链。会跳转到另一个action...
Java
51,412
社区成员
86,031
社区内容
发帖
与我相关
我的任务
Java
Java相关技术讨论
复制链接
扫一扫
分享
社区描述
Java相关技术讨论
java
spring boot
spring cloud
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章