cannot find symbol;错误部分代码如下:function checkLogin(){if(document.enrollform.name.value=="")/////enrollform是一表单名{document.writeln("请输入用户名");document.enrollform.name.focus();return false;}if(document.enrollform.pass

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 13:11:50
cannot find symbol;错误部分代码如下:function checkLogin(){if(document.enrollform.name.value==

cannot find symbol;错误部分代码如下:function checkLogin(){if(document.enrollform.name.value=="")/////enrollform是一表单名{document.writeln("请输入用户名");document.enrollform.name.focus();return false;}if(document.enrollform.pass
cannot find symbol;错误
部分代码如下:
function checkLogin()
{
if(document.enrollform.name.value=="")/////enrollform是一表单名
{
document.writeln("请输入用户名");
document.enrollform.name.focus();
return false;
}
if(document.enrollform.passwd.value=="")
{
document.writeln("请您输入密码!");
document.enrollform.passwd.focus();
return false;
}
if(document.enrollform.confirmpasswd.value=="")
{
alert("请您再输入验证密码!");
document.enrollform.confirmpasswd.focus();
return false;
}
if(document.enrollform.confirmpasswd.value!=document.enrollform.passwd.value)
{
alert("确认密码与密码不一致!");
document.enrollform.confirmpasswd.focus();
return false;
}
return true;
}
.......
if(checkLogin())
{
String sql="INSERT INTO users(username,userpasswd,userphone,useremail,userbirth,usersex,userregistertime) VALUES(uname,password,telphone,Email,birth,sex,Date())";
result=enroll.executeUpdate(sql);
}
...
出现如下错误:can't find symbol;symbol:method checkLogin(),location:class JspJavaCode

cannot find symbol;错误部分代码如下:function checkLogin(){if(document.enrollform.name.value=="")/////enrollform是一表单名{document.writeln("请输入用户名");document.enrollform.name.focus();return false;}if(document.enrollform.pass
这个问题你发了两遍哦.居然都被我看到了.晕.
JSP不能直接调用JAVASCRIPT中的方法和变量.
JAVA脚本是在翻译JSP的过程中就在后台生成了,而JAVASCRIPT是在客户端才由浏览器解释执行的.
先生成的代码怎么能调用后生成的代码里面的方法呢?自然会找不到了.
用户信息可以通过页面提交传递给下一个JSP或者SERVLET对象,存储用户信息的过程可以在页面提交以后进行.

useradd.jsp:cannot find symbol; symbol :method print(),location:class cannot resolve symbol variable jsp1.jsp: cannot find symbol; symbol : variable Num, location: class org.apache.jsp.jsp1_jsp有时运行会出现这样的错误,但是没有说明是哪个错了!错误行是<%@page contentType=text/html;charset=GB2312 %> cannot find and hard Cannot Find the cannot find symbol;错误部分代码如下:function checkLogin(){if(document.enrollform.name.value==)/////enrollform是一表单名{document.writeln(请输入用户名);document.enrollform.name.focus();return false;}if(document.enrollform.pass cannot find her dog是什么意思 cannot find symbol错误我的程序是这样写的:pubic class HelloWorld{public static void main(String args[]){System.out.printIn(my first java program!);}}编译时,它是这样提示的:helloworld:java:8:cannot find symbolsymbol:method pri cannot resolve symbol :错误!这是我的java源程序 编译时老是报cannot resolve symbol :symbol : variable j location: class Zhis if(j>=i) ^location: class Zhis ^1 error请高手指教~~ 英语改错 错在哪里The pen is missing,for we cannot find it everywhere. 英语翻译cannot find root file system l cannot find my (lost) book. wine运行错误Cannot find wine (wine) what if you cannot find a job? Cannot find ssl libraries怎么解决 Cannot find Euro Truck Simulator 2 could not find definition of symbol 'OSTaskCreateExt' in file './OS_CORE.o'.我在向pic18移值ucos时总是报错.求高手回答. 在Java中我运行的程序出现 can not find symbol,这是什么情况!