当前位置: 代码迷 >> Java Web开发 >> 各位老大,struts的一个小疑点,但是折磨小弟我三天了,请大家帮忙
  详细解决方案

各位老大,struts的一个小疑点,但是折磨小弟我三天了,请大家帮忙

热度:199   发布时间:2016-04-17 13:39:44.0
各位老大,struts的一个小问题,但是折磨我三天了,请大家帮忙!
刚入职,要编一个增删查改的功能的页面,用STRUTS。下面是我的STRUTS-CONFIG。
<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<!DOCTYPE   struts-config   PUBLIC   "-//Apache   Software   Foundation//DTD   Struts   Configuration   1.1//EN "   "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd ">

<struts-config>
    <data-sources   />
    <form-beans>
    <form-bean   type= "com.dhc.dota.DotaVo "   name= "DotaVoForm "   />
    </form-beans>
    <global-exceptions   />
    <global-forwards   />
   
    <action-mappings>
    <action   path= "/DotaCreate "   type= "com.dhc.dota.action.DotaCreateAction "   name= "DotaVoForm "   parameter= "method "   input= " "   scope= "session ">
            <forward   path= "/Sucess.jsp "   name= "sucesspage "/>
            <forward   path= "/Fail.jsp "   name= "fail "/>
            <forward   path= "/DotaCreate.jsp "   name= "newpage "/>
        </action>
      <action   path= "/DotaLista "   type= "com.dhc.dota.action.DotaListAction "       name= "DotaVoForm "   parameter= "method "   scope= "session ">
              <forward   path= "/index.jsp "   name= "listpage ">
        </forward>
        </action>
          <action   path= "/DotaDel "   type= "com.dhc.dota.action.DotaDelAction "   name= "DotaVoForm "   parameter= "method "   scope= "session ">
              <forward   path= "/Sucess.jsp "   name= "sucesspage "/>
        <forward   path= "/Fail.jsp "   name= "fail "   redirect= "false "/>

        </action>
          <action   path= "/DotaUpd "   type= "com.dhc.dota.action.DotaUpdateAction "   name= "DotaVoForm "   parameter= "method "   scope= "session ">
              <forward   path= "/DotaUpdate.jsp "   name= "updatepage "/>
              <forward   path= "/Sucess "   name= "sucesspage "/>
              <forward   path= "/Fail.jsp "   name= "fail "/>
          </action>
          <action   path= "/DotaDetail "   type= "com.dhc.dota.action.DotaDetailAction "   name= "DotaVoForm "   parameter= "method "   scope= "session ">
              <forward   path= "/DotaDetail.jsp "   name= "detailpage "/>
  相关解决方案