有包没有倒入
大楖是标筌库没有也可能是JMV有问题
因为是ERROR这几天高手都在火车上
过几天再问

解决方案 »

  1.   

    学习ING(建议楼主按默认的设置重新来过一遍,HOHO~)
      

  2.   

    我也遇到过这样的问题,问题是出在WEB.XML文件上!用STRUTS列子中的WEB.XML文件就行了!
      

  3.   

    把你的web.xml文件里边的配置代码拿出来看看啊,很有可能是你的配置文件有问题了!!!
      

  4.   

    我就是拷的STRUTS列子中的WEB.XML啊,一点都没改啊<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"><web-app>
    <display-name>Struts Example Application</display-name>  <!-- Action Servlet Configuration -->
      <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, /WEB-INF/struts-config-registration.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <!-- Action Servlet Mapping -->
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      <!-- The Welcome File List -->
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>  <!-- Application Tag Library Descriptor -->
      <taglib>
        <taglib-uri>/WEB-INF/app.tld</taglib-uri>
        <taglib-location>/WEB-INF/app.tld</taglib-location>
      </taglib>  <!-- Struts Tag Library Descriptors -->
      <taglib>
        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>  <taglib>
        <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
      </taglib></web-app>
      

  5.   

    看看tld文件的位置是不是正确??
      

  6.   

    tld文件的位置对着呢,在WEB-INF,以前什么事都没有,也不知道动哪了,现在不行了
      

  7.   

    你用的是什么IDE??
    jbuild???
    再配一次jbuild
    试试
    一定是你的struts包没有倒全
    一共要下二个压缩包
    十几个class
    你再看看别人的再试试
    我出过这东东
    就是这么解决的
      

  8.   

    我没有IDE,就用的UE,我的机器比较慢,跑不了JB
      

  9.   

    我也这样想,你看一下classpath吧
      

  10.   

    我的classpath:
    .;D:\j2sdk1.4.2_04\lib;D:\j2sdk1.4.2_04\lib\dt.jar;D:\j2sdk1.4.2_04\lib\tools.jar;D:\j2sdk1.4.2_04\lib\dt.jar;D:\j2sdk1.4.2_04\lib\servlet.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet.jar
    其中和`servlet.jar有关的都是我后来加的,也不行
      

  11.   

    java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo 
    应该是漏了什么标签库
      

  12.   

    1、从 struts.apache.org 下载标准的 struts 库
    2、将标准的 struts 库加到自己的工程中
    3、重新编译
    4、恭喜你,成功了
      

  13.   

    to  LoveTide,我手里没有开发环境,我就用UE,你说的编译是什么?编译JSP吗?Tomcat会在后台编译的啊,我用的就是标准的 struts 包啊
      

  14.   

    1、检查.tld与配置路径2、去掉ClassPath,仅留.;3、设置Java_Home4、检查应用程序的WEB-INF\lib下面是仅有
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    struts.jar
    多余的删除5、...
      

  15.   

    html - Render an HTML <html> Element 
    Renders an HTML <html> element with language attributes extracted from the user's current Locale object, if there is one.
     
    Attribute Name Description 
    lang Since: Struts 1.2Renders a lang attribute with the locale stored in the user's session. If not found in the session, the language from the Accept-Language HTTP header is used. If still not found, the default language for the server is used. (RT EXPR)  
    locale DEPRECATED: Creating a session is undesirable for apps that don't support them. Use the lang attribute to acheive the same functionality without creating a session. Set to true in order to store a Locale in the session based on the current request's Accept-Language header (if any) if none has currently been set. This attribute will create a session if one does not already exist. The lang attribute is rendered with the appropriate language code.(RT EXPR)  
    xhtml Since: Struts 1.1Set to true in order to render xml:lang and xmlns attributes on the generated html element. This also causes all other html tags to render as xhtml. (RT EXPR)  
     
      

  16.   

    to  harricc(依风):
    你的这个好象和我的这个不是一回事啊
      

  17.   

    to YuLimin:
    我试了你的方法,结果还是一样,邪了,我拷的Struts的例子都不行
      

  18.   

    to YuLimin:
    我试了你的方法,结果还是一样,邪了,我拷的Struts的例子都不行
      

  19.   

    1、你的web.xml配置信息是什么?举例如下:
    .....
    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
    </web-app>2、你的JSP引入taglib有问题,应当与web.xml里面的名称才对,eg:
    /tags/struts-bean<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    而不是你写的全路径的格式,你试试看。
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>在web.xml中<taglib-uri>给出标签库的逻辑名称。这通常看起来像是一个文件路径,但其实不是。JSP在导入标签库时将引用这个URI。
      

  20.   

    to YuLimin:
    我的web.xml里是:
      <taglib>
        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      </taglib>
    JSP里:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    这个是一致的,是没有问题的,我现在怀疑是我的Tomcat或者是系统出了问题,因为同样的东西在公司的机器上就一切正常.我把Tomcat都从D盘改装到E盘还是一样,而且admin的页面都是进不去,后台报出了:
    2005-3-19 22:47:24 org.apache.catalina.authenticator.FormAuthenticator authenticate
    警告: Unexpected error forwarding to login page
    javax.servlet.ServletException: Error instantiating servlet class admin.login_jsp
    这在以前都是好的.
      

  21.   

    麦克格雷迪,呵呵删除work目录下的东东,重启Tomcat试试。
      

  22.   

    to  YuLimin:
    不好使,我都换了一个分区了,还是一样
      

  23.   

    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    改为
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
      "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
      

  24.   

    Struts自带的例子能运行吗,如果能,不是环境的问题,还是配置上有问题。