TagTemplate类中的addElement方法中的for语句有误:
public void addElement(String strTagName, String strElementName, String strElementType)
{
....
for(int index = 0; index < tagListLenth; tagListLenth++)
{
........
}
}应该是: public void addElement(String strTagName, String strElementName, String strElementType)
{
....
for(int index = 0; index < tagListLenth; index++)
{
........
}
}可能是你不小心写错了吧
public void addElement(String strTagName, String strElementName, String strElementType)
{
....
for(int index = 0; index < tagListLenth; tagListLenth++)
{
........
}
}应该是: public void addElement(String strTagName, String strElementName, String strElementType)
{
....
for(int index = 0; index < tagListLenth; index++)
{
........
}
}可能是你不小心写错了吧
解决方案 »
- 提个小问题~~
- applet里ServerSocket监听端口的类没有main怎么自动运行,随时监听C语言发过来的请求,然后处理???
- 如何把字符串(20070807)转化为日期类型
- JAR,WAR,EAR三种文件有什么区别啊?
- 加密算法之sha1算法.js源程序
- jb8中关于UI的非常简单的问题
- 怎样设置窗口的背景图片?
- 请教:给JList加上滚动条后,如何指定滚动条的位置
- 想试验一下gis,请问哪里可以下载到MapXtremeJava 4.0的?可以crack吗?
- java专业的、技术前沿的论坛或网站。(高手请进)
- 是什么原因呢(内存??)
- 在eclipse中用lomboz跑tomcat的时候,jsp文件不可以编译成class.应该是没权限生成文件.怎么办?
function check()
之间加入下列语句:
function isnumber(c)
{
if ((c>='0') && (c<='9')) return true;
else return false;
}function check_num(s)
{
for (i=0; i<s.length; i++)
{
n = s.substr(i, 1)
if (!isnumber(n))
{
return false;
}
}
return true;
}然后在function check()里面加入:
if (!check_num(p))
{
alert("只能由数字(0-9)构成!");
document.form1.pwsd.focus();
document.form1.pwsd.select();
return;
}