为什么标签库文件struts-html.tld不起作用? struts-html.tld是否放在web-inf中了。是否在web.xml中部署了? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样子别人怎么看,把jsp头,web.xml,都贴出来 -----------------------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文件 为何到了支付宝收银台页面出现了乱码 tomcat在马上要启动完成的时候为什么又要重新启动一次? jsp MD5算法 struts1.3 forward超级怪问题,要多少分都给,只要我有 数据库 随 tomcat 启动 JAVA 抛异常问题 怎样用SSH框架技术实现后台留言板处理系统 问一个文件保存的问题,兄弟们过来看看啊! 招聘启事(上海地区):程序开发员,系统分析员 表单里checkbox的数据大家一般在action里是定义String[]类型接收还是String类型接收啊 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文件