• λ我爱Aspx >> Asp.Net >> struts遇到的一个问题
  • struts遇到的一个问题

  • :aspxer  Դ:csdn  :2007-7-6 2:37:54  ؼ:
  • 我想在一个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 发表

    上面的说的很对

    Ҷƪл˵?
  • һƪ在vs2005里设计winform,比如打开一个mousedown事件,出来的是vb.net格式的语句,不是c#的,怎么改到c#格式?
    һƪ哪位大师给开个java学习的书单?