| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1031 人关注过本帖
标题:struts验证框架的问题?
只看楼主 加入收藏
ynw520
Rank: 1
等 级:新手上路
帖 子:100
专家分:0
注 册:2006-8-24
收藏
 问题点数:0 回复次数:0 
struts验证框架的问题?
我加入了验证框架,但是tomcat6.0启动,为何不加载验证文件 ?
下面为:
web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java. xmlns:xsi="http://www. version="2.4" xsi:schemaLocation="http://java.   http://java.
  <servlet>
    <servlet-name>MemberGradeServlet</servlet-name>
    <servlet-class>org.esms.servlet.MemberGradeServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>MemberGrade</servlet-name>
    <servlet-class>org.esms.servlet.MemberGrade</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>MemberGradeServlet</servlet-name>
    <url-pattern>/servlet/MemberGradeServlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>MemberGrade</servlet-name>
    <url-pattern>/servlet/MemberGrade</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>

struts-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.

<struts-config>
  <data-sources />
  <form-beans >
    <form-bean name="addMemberGradeForm" type="org.esms.struts.form.AddMemberGradeForm" />

  </form-beans>

  <global-exceptions />
  <global-forwards />
  <action-mappings >
    <action
      attribute="addMemberGradeForm"
      input="/addMemberGrade.jsp"
      name="addMemberGradeForm"
      path="/addMemberGrade"
      scope="request"
      type="org.esms.struts.action.AddMemberGradeAction"
      validate="true">
      <forward name="failed" path="#" />
      <forward name="success" path="#" />
    </action>

  </action-mappings>

  <message-resources parameter="org.esms.struts.ApplicationResources" />
  
  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
  </plug-in>
</struts-config>


tomcat启动信息

2008-3-12 13:20:52 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.5.0_09\bin;D:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
2008-3-12 13:20:53 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8889
2008-3-12 13:20:53 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 843 ms
2008-3-12 13:20:53 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-3-12 13:20:53 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.10
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
2008-3-12 13:20:59 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2008-3-12 13:20:59 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2008-3-12 13:20:59 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8889
2008-3-12 13:20:59 org.apache. init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-3-12 13:20:59 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62  config=null
2008-3-12 13:20:59 org.apache.catalina.startup.Catalina start
信息: Server startup in 6860 ms

请高手解决?
搜索更多相关主题的帖子: struts 框架 验证 
2008-03-12 13:28
快速回复:struts验证框架的问题?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018388 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved