光看这个怎么行啊,把你的JSP原文件拿出来看

解决方案 »

  1.   

    一般来说~是你的FormBean的名称或Action的名称与struts-config.xml中配置的不一致~
      

  2.   

    jsp页面没有多少句,我看来没有错的,那先由连接数据库吧,请帮帮看有没有连错,麻烦各位大哥了.<?xml version="1.0" encoding="GB2312"?>
    <!--
      SQLMapConfig.xml文件会引用在这定义的数据源.
     --><datasources>
      <datasource name="xsgioa"
                  factory-class="net.jcreate.jcdb.datasource.BasicDatasourceFactory">
        <property name="JDBC.Driver" value="com.inet.tds.TdsDriver"/>
        <property name="JDBC.ConnectionURL" value="jdbc:inetdae://localhost:1433/xsgioa?useUnicode=true&amp;characterEncoding=GBK"/>
        <property name="JDBC.ConnectionURL" value="jdbc:inetdae:hepy:1433?charset=gb2312&amp;database=xsgioa "/>
        <property name="JDBC.Username" value="sa"/>
        <property name="JDBC.Password" value=""/>
        <property name="Pool.MaximumActiveConnections" value="15"/>
        <property name="Pool.MaximumIdleConnections" value="15"/>
        <property name="Pool.MaximumWait" value="1000"/>
      </datasource>
    </datasources>
      

  3.   

    或者是你在struts-config.xml中配置项中的type的值和实际类名及包名不一致
      

  4.   

    net.jcreate.jcdb.datasource.BasicDatasourceFactory
    是不是错了~应该是
    net.jcreate.jdbc.datasource.BasicDatasourceFactoryps:纯属猜测~
      

  5.   

    struts-config.xml对应的Action及ActionForm都没有错呀..
      

  6.   

    以下是struts-config.xml文件<?xml version="1.0" encoding="ISO-8859-1" ?><!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>
    <!-- ========定义Form Bean ===================-->
        <form-beans>
          <form-bean name="UsersForm" type="net.jcreate.xsgioa.Users.UsersForm" />
        </form-beans><!-- ==========定义全局Forward -->
    <!--
    <global-exceptions>
        <exception 
      key="default"
          type="java.lang.Exception" 
      path="failure"
          handler="net.jcreate.util.web.JCExceptionHandler" />
    </global-exceptions>    <global-forwards>     
          <forward name="failure" path="/common/jsp/ErrorPage.jsp" contextRelative="true" />
          <forward name="login" path="/dfi/jsp/User/UserLogin.jsp" contextRelative="true" />
        </global-forwards>-->
    <!-- ==============定义ActionMapping ===================== -->
        <action-mappings>    <action name="UsersForm" path="/UsersAction" scope="request" type="net.jcreate.xsgioa.Users.UsersAction" validate="false" parameter="command">
          <forward name="list" path="/Users/UsersList.jsp" />  
        </action>
        </action-mappings><!-- ===========控制器配置,这我们通常不需要修改======================== -->
        <controller   processorClass="org.apache.struts.tiles.TilesRequestProcessor"/><!-- ==============定义消息资源========================-->
    <!--
      <message-resources parameter="net.jcreate.dfi.ApplicationResources"/>
    -->
    <!-- =====================插件配置========================== -->
      <!-- ========== Tiles plugin ===================  -->
      <!-- -->
      <!--
         This plugin initialize Tiles definition factory. This later can takes some
     parameters explained here after. The plugin first read parameters from web.xml, then
     overload them with parameters defined here. All parameters are optional.
     The plugin should be declared in each struts-config file.
           - definitions-config: (optional) 
                Specify configuration file names. There can be several comma 
        separated file names (default: ?? )
           - moduleAware: (optional - struts1.1) 
                Specify if the Tiles definition factory is module aware. If true (default), 
    there will be one factory for each Struts module. 
    If false, there will be one common factory for all module. In this later case, 
    it is still needed to declare one plugin per module. The factory will be 
    initialized with parameters found in the first initialized plugin (generally the
    one associated with the default module).
      true : One factory per module. (default)
      false : one single shared factory for all modules
       - definitions-parser-validate: (optional)
            Specify if xml parser should validate the Tiles configuration file.
      true : validate. DTD should be specified in file header. (default)
      false : no validation
      
      Paths found in Tiles definitions are relative to the main context.
      -->
      <!-- comment following if struts1.0.x -->
      <!--
      <plug-in className="org.apache.struts.tiles.TilesPlugin" >
        <set-property property="definitions-config" 
                     value="/dfi/struts/tiles-defs.xml" />
        <set-property property="moduleAware" value="true" />
        <set-property property="definitions-parser-validate" value="true" />
      </plug-in>
    -->
      <!-- end comment if struts1.0.x --></struts-config>
      

  7.   

    <?xml version="1.0" encoding="GB2312"?>
    <sql-map>  <property name="main-table" value="Users"/>  <property name="model-class" value="net.jcreate.xsgioa.Users.UsersForm"/>  <sql-templates>
        <!-- &#65533;&#65533;板&#65533;&#65533; -->
        <sql-template name="insertUsers" >
           insert into users
             ${std.insert}
        </sql-template>    <!-- &#65533;&#65533;&#65533;&#65533;&#65533;&#65533; -->
        <sql-template name="deleteUsers" >
           delete from users
           where  userId=${id}
        </sql-template>    <!-- 淇&#65533;&#65533;&#65533;&#65533; -->
        <sql-template name="updateUsers" >
           update users
              ${std.update}
           where  userId=${id}
        </sql-template>    <!-- &#65533;&#65533;峰&#65533;&#65533; -->
        <sql-template name="getUsersId" >
           select
             *
           from users
           where userId =${id}
        </sql-template>    <sql-template name="getListUsers" >
           select
            *
           from users
           order by userId desc
        </sql-template>    <sql-template name="getUsers" >
           select
            *
           from users
           order by userId desc
        </sql-template>
      </sql-templates>  <!--
          涓昏〃&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;瀛&#65533;娈&#65533;
           name: &#65533;&#65533;&#65533;&#65533;&#65533;&#65533;
           value: 瀛&#65533;娈靛&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;瀛&#65533;
           濡&#65533;: select equip-sn as equipSn,
               name = equipSn, value = equip-sn
        -->
      <alias-fields>
         <!--  <alias-field name="equipId"   value="id" /> -->
      </alias-fields>  <!--
         &#65533;&#65533;&#65533;&#65533;&#65533;板&#65533;&#65533;娈&#65533;:涓&#65533;&#65533;&#65533;&#65533;涓&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;ㄦ&#65533;&#65533;璇&#65533;&#65533;&#65533;&#65533;.
      -->
      <param-fields>
           <param-field name="startRecNum" />
           <param-field name="countRecNum" />
      </param-fields>   <!-- 褰卞&#65533;&#65533;瀛&#65533;娈&#65533; -->
       <map-fields>
           <!-- <map-field name="equipId" value="iems_equip_equip_card.id as equipId" /> -->
       </map-fields></sql-map>