我爱Aspx >> Asp.Net >> struts遇到的一个问题我想在一个action中完成后转向另一个action
google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";
如下:
<action
attribute="registerForm"
input="/register.jsp"
name="registerForm"
path="/register"
scope="request"
type="com.jj.struts.action.RegisterAction">
<forward name="success" path="/show" /> //这里succes后转向/show,也就是下面的这个action
<forward name="failure" path="/failure.jsp" />
</action>
<action
attribute="registerForm"
name="registerForm"
path="/show"
scope="request"
type="com.jj.struts.action.ShowAction">
<forward name="show" path="/show.jsp" />
<forward name="failure" path="/failure.jsp" />
</action>
可是总是出现 The requested resource (/struts002/show) is not available.的错误,我之前直接转向一个页面的话是没问题的
看书上说aciton的既可以转向页面,也可以转向一个请求的啊
为什么会出现这个问题呢
谢谢!
第2楼. 由 pengtao0615 于 2007-6-14 18:43:17 发表
<forward name="success" path="/show" />
把path="/show.do"试试,如果不行就是你的path=""里的路径不对
第3楼. 由 tangwei968548 于 2007-6-17 0:50:56 发表
上面的说的很对
Ҷƪл˵?
哪位大师给开个java学习的书单?[07-06]
下载到arm上的可执行文件提示缺少..[07-06]
[100分]:::copymemory使用中的..[07-06]
急求毕业设计帮忙[07-06]
读者域赋值问题[07-06]
ARM问题2[07-06]
关于log4j自定义级别的问题[07-06]
遇到一个棘手的hibernate的效率问..[07-06]
!!!急救---evc下位图的操作,包括..[07-06]
问个MYSQL的基础问题,排序字段时..[07-06]