<mastering jakarta struts>中对struts-html.tld文件,怎么整本书也没有一个完整的解释与示例? 你是说html taglib,还是说那个struts-html.tld文件?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我照着例子写了一index.jsp和两个xml配置文件,但是编译时去说tld找不到,但是我肯定tld文件已经放在了WEB-INF下面了.请问你有类似的错误吗?-----------------------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> </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> </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文件 Hibernate中怎么得到表名及字段名? 初学j2ee 学做一个例子的时候出现问题了 请高手指教 hql select new 求助EXTJS3.4大虾 学 java 需要会那些框架 高手帮忙呀 客户端调用问题 hibernate的一对多问题 菜鸟求救struts小问题。 哪里有《精通EJB》(第二版)的完整的电子版可以免费下载? 用java将二进制文件保存到blob 问题 大家帮忙看看这个简单的ejb那有问题 portal是个什么东东呢?
<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> </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> </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文件