谁能帮我看看这个问题,100分回报!org.apache.jasper.JasperException: Must specify type attribute if name is specified jsp 内的变量没有定义类型 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我都把jsp页面的内容全部删除了,留了个空的页面,还是有这个错! <%@ page contentType="text/html;charset=GB2312" language="java" %><%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %><%@ taglib uri="/WEB-INF/tld/struts-html-el.tld" prefix="html-el" %><%@ taglib uri="/WEB-INF/tld/struts-logic-el.tld" prefix="logic-el" %><%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %><html:html><head><script>function doNext(){document.TestForm.submit()}</script><title>云南电信公司流量分析表</title></head><body><div align="left"><html:form name="TestForm" action="/Test" method="post"><table width="100%" border="0" cellspacing="0" cellpadding="1" id ="table1"><tr> <td align="left">地区号: <select property="areaCode" > <option value='*'>全部</option> <option value='0691'>景洪</option> <option value='0692'>德洪</option> <option value='0870'>昭通</option> <option value='0871'>昆明</option> <option value='0872'>大理</option> <option value='0873'>红河</option> <option value='0874'>曲靖</option> <option value='0875'>保山</option> <option value='0876'>文山</option> <option value='0877'>玉溪</option> <option value='0878'>楚雄</option> <option value='0879'>思茅</option> <option value='0881'>东川</option> <option value='0883'>临沧</option> <option value='0886'>怒江</option> <option value='0887'>迪庆</option> <option value='0888'>丽江</option> </select></td></tr><tr> <td align="left">帐期: <select property="acctCycle" > <option value='200408'>200408</option> <option value='200409'>200409</option> <option value='200410' selected>200410</option> </select></td></tr></table><br><table width="100%" border="0" cellspacing="0" cellpadding=""><tr> <td> <html:button property="doit" value="确 定" onclick="doNext()"/> </td></tr></table><br> <table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr> <td width="10%" ></td> <td width="15%" >区内通话</td> <td width="15%" >区间通话</td> <td width="15%" >国内通话</td> <td width="15%" >港澳台通话</td> <td width="15%" >国际通话</td> <td width="15%" >合计</td> </tr> <tr> <table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr> <td width="10%" >地区</td> <td width="5%" >时长</td> <td width="5%" >流量</td> <td width="5%" >费用</td> <td width="5%" >时长</td> <td width="5%" >流量</td> <td width="5%" >费用</td> <td width="5%" >时长</td> <td width="5%" >流量</td> <td width="5%" >费用</td> <td width="5%" >时长</td> <td width="5%" >流量</td> <td width="5%" >费用</td> <td width="5%" >时长</td> <td width="5%" >流量</td> <td width="5%" >费用</td> <td width="5%" >时长</td> <td width="5%" >流量</td> <td width="5%" >费用</td> </tr> <logic-el:iterate name="TestForm" property="dataList" id="item" indexId="theIndex" > <tr> <td width="10%" > <bean:write name="item" property="area" /></td> <td width="5%" > <bean:write name="item" property="duration_qn"/></td> <td width="5%" > <bean:write name="item" property="detail_qn"/> </td> <td width="5%" > <bean:write name="item" property="fee_qn"/> </td> <td width="5%" > <bean:write name="item" property="duration_qj"/> </td> <td width="5%" > <bean:write name="item" property="detail_qj"/> </td> <td width="5%" > <bean:write name="item" property="fee_qj"/> </td> <td width="5%" > <bean:write name="item" property="duration_gn"/> </td> <td width="5%" > <bean:write name="item" property="detail_gn"/> </td> <td width="5%" > <bean:write name="item" property="fee_gn"/> </td> <td width="5%" > <bean:write name="item" property="duration_ga"/> </td> <td width="5%" > <bean:write name="item" property="detail_ga"/> </td> <td width="5%" > <bean:write name="item" property="fee_ga"/> </td> <td width="5%" > <bean:write name="item" property="duration_gj"/> </td> <td width="5%" > <bean:write name="item" property="detail_gj"/> </td> <td width="5%" > <bean:write name="item" property="fee_gj"/> </td> <td width="5%" > <bean:write name="item" property="duration_hj"/> </td> <td width="5%" > <bean:write name="item" property="detail_hj"/> </td> <td width="5%" > <bean:write name="item" property="fee_hj"/> </td> </tr> </logic-el:iterate> </table> </tr> </table></html:form></body></html:html> <logic-el:iterate name="TestForm" property="dataList" id="item" indexId="theIndex" >好象是这句有问题,没有指定TestForm的类型。应该加上type="xx.xx.TestFormClass" 我把jsp页面的东西全部删了,还是会报这个错 现在估计不是代码的问题,很可能是主机环境的问题,是IBM的机器 问题我已经自己解决了<html:form name="TestForm" action="/Test" method="post">把 name="TestForm" 去掉改成 <html:form action="/Test" method="post"> 你这只是权宜之计如果要用name="TestForm" 又怎么办 URL中文乱码[无论怎么转码都是乱码] 新手,设置tomcat出问题!帮忙解决一下,无法后续学习了! jsp与数据库的问题(100分) Hibernate+struts建立三层结构碰到的关于实现工厂模式的问题 有没有一个比较好点的编辑器啊 数据库连接代码的疑问 在struts中,标签<html:form action="">如何传递参数 用request对象的getRemoteAddress方法取IP 怎么样注册jsp上的jdbcoracle驱动 大家现在都用jsp做什么呢? 关于读文件路径的问题请教 急!!!请问别人怎样输入ip地址才能访问到我的机器呀?急!!!谢谢了
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic-el.tld" prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %><html:html>
<head>
<script>
function doNext(){
document.TestForm.submit()
}
</script>
<title>云南电信公司流量分析表</title>
</head><body><div align="left">
<html:form name="TestForm" action="/Test" method="post"><table width="100%" border="0" cellspacing="0" cellpadding="1" id ="table1">
<tr>
<td align="left">地区号:
<select property="areaCode" >
<option value='*'>全部</option>
<option value='0691'>景洪</option>
<option value='0692'>德洪</option>
<option value='0870'>昭通</option>
<option value='0871'>昆明</option>
<option value='0872'>大理</option>
<option value='0873'>红河</option>
<option value='0874'>曲靖</option>
<option value='0875'>保山</option>
<option value='0876'>文山</option>
<option value='0877'>玉溪</option>
<option value='0878'>楚雄</option>
<option value='0879'>思茅</option>
<option value='0881'>东川</option>
<option value='0883'>临沧</option>
<option value='0886'>怒江</option>
<option value='0887'>迪庆</option>
<option value='0888'>丽江</option>
</select>
</td>
</tr>
<tr>
<td align="left">帐期:
<select property="acctCycle" >
<option value='200408'>200408</option>
<option value='200409'>200409</option>
<option value='200410' selected>200410</option>
</select>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="">
<tr>
<td>
<html:button property="doit" value="确 定" onclick="doNext()"/>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="10%" ></td>
<td width="15%" >区内通话</td>
<td width="15%" >区间通话</td>
<td width="15%" >国内通话</td>
<td width="15%" >港澳台通话</td>
<td width="15%" >国际通话</td>
<td width="15%" >合计</td>
</tr>
<tr>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="10%" >地区</td>
<td width="5%" >时长</td>
<td width="5%" >流量</td>
<td width="5%" >费用</td>
<td width="5%" >时长</td>
<td width="5%" >流量</td>
<td width="5%" >费用</td>
<td width="5%" >时长</td>
<td width="5%" >流量</td>
<td width="5%" >费用</td>
<td width="5%" >时长</td>
<td width="5%" >流量</td>
<td width="5%" >费用</td>
<td width="5%" >时长</td>
<td width="5%" >流量</td>
<td width="5%" >费用</td>
<td width="5%" >时长</td>
<td width="5%" >流量</td>
<td width="5%" >费用</td>
</tr>
<logic-el:iterate name="TestForm" property="dataList" id="item" indexId="theIndex" >
<tr>
<td width="10%" > <bean:write name="item" property="area" /></td>
<td width="5%" > <bean:write name="item" property="duration_qn"/></td>
<td width="5%" > <bean:write name="item" property="detail_qn"/> </td>
<td width="5%" > <bean:write name="item" property="fee_qn"/> </td>
<td width="5%" > <bean:write name="item" property="duration_qj"/> </td>
<td width="5%" > <bean:write name="item" property="detail_qj"/> </td>
<td width="5%" > <bean:write name="item" property="fee_qj"/> </td>
<td width="5%" > <bean:write name="item" property="duration_gn"/> </td>
<td width="5%" > <bean:write name="item" property="detail_gn"/> </td>
<td width="5%" > <bean:write name="item" property="fee_gn"/> </td>
<td width="5%" > <bean:write name="item" property="duration_ga"/> </td>
<td width="5%" > <bean:write name="item" property="detail_ga"/> </td>
<td width="5%" > <bean:write name="item" property="fee_ga"/> </td>
<td width="5%" > <bean:write name="item" property="duration_gj"/> </td>
<td width="5%" > <bean:write name="item" property="detail_gj"/> </td>
<td width="5%" > <bean:write name="item" property="fee_gj"/> </td>
<td width="5%" > <bean:write name="item" property="duration_hj"/> </td>
<td width="5%" > <bean:write name="item" property="detail_hj"/> </td>
<td width="5%" > <bean:write name="item" property="fee_hj"/> </td>
</tr>
</logic-el:iterate>
</table>
</tr>
</table>
</html:form>
</body>
</html:html>
好象是这句有问题,没有指定TestForm的类型。
应该加上type="xx.xx.TestFormClass"
<html:form name="TestForm" action="/Test" method="post">
把 name="TestForm" 去掉
改成 <html:form action="/Test" method="post">
如果要用name="TestForm" 又怎么办