struts-html.tld是否放在web-inf中了。是否在web.xml中部署了?

解决方案 »

  1.   

    这样子别人怎么看,把jsp头,web.xml,都贴出来
      

  2.   

    -----------------------web.xml------------------------
    <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>
    --------------------------------struts-config.xml-----------------------
    <form-beans>
    <form-bean name="lookupForm" type="wiley.LookupForm" ></form-bean>
    </form-beans>
    <global-exceptions>
    </global-exceptions> <!-- 全局转发 -->
    <global-forwards>
    </global-forwards> <!-- 操作映射 -->
    <action-mappings>
     <action path="Lookup" type="wiley.LookupAction" name="lookupForm" input="index.jsp">
        <forward name="success" path="/quote.jsp"/>
        <forward name="failure" path="/index.jsp"/>
      </action>
    </action-mappings>
    --------------------index.jsp---------------------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ page  contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
    <html:html>
    <head>
    <title>
    </title>
    </head>
    <body bgcolor="#ffffff">
    <h1>
    </h1>
    <table width="500"
    border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>&nbsp;</td>
    </tr>
    <tr bgcolor="#36566E">
    <td height="68" width="48%">
    <div align="left">
    <html:img width="220" height="74" src="images/hp_logo_wiley.gif"/>
    </div>
    </td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table>
    <!--提示出错的行号27行-->
    <html: form action="Lookup" name="lookupForm" type="wiley.LookupForm" >
    <table width="45%" border="0">
    <tr>
    <td>Symbol:</td>
    <td><html:text property="symbol" /></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><html:submit /></td>
    </tr>
    </table>
    <html:form>
    </body>
    </html:html>
    ---------------错误提示-----------------------------
    org.apache.jasper.JasperException: /index.jsp(27,0) No such tag  in the tag library imported with prefix html我的也是类似的错误.我用WSAD自动创建了一个index1.jsp引入struts-html.tld,index1.jsp可以正常运行.用的是同一个web.xml文件