当前位置: 技术问答>java相关
高不清楚的错误!!!
来源: 互联网 发布时间:2015-06-03
本文导语: rigister.jsp Óû§×¢²á function isValid(form){ if(form.user_id.value==""){ alert("µÇ¼Ãû²»ÄÜΪ¿Õ!"); return false; } ...
rigister.jsp
Óû§×¢²á
function isValid(form){
if(form.user_id.value==""){
alert("µÇ¼Ãû²»ÄÜΪ¿Õ!");
return false;
}
else if((form.password.value.length8)){
alert("ÃÜÂë±ØÐëÊÇ3-8λ×Öĸ»òÊý×Ö!");
return false;
}
else if(form.password.value!=form.re_password.value){
alert("Á½´ÎÊäÈëµÄÃÜÂë²»Ïàͬ!");
return false;
}
else if ((form.e_mail.value=="")||(form.e_mail.value.indexOf('@',0)==-1)||(form.e_mail.value.indexOf('.',0)==-1)||(form.e_mail.value.length
Heylo,,Çë¼ì²éÄúµÄ×¢²áÐÅÏ¢
µÇ¼Ãû£º
ÃÜÂ룺
(²»ÏÔʾ)
E-mail£º
qq£º
产生如下错误:
/wangzhan/register_confirm.jsp:
null
java.lang.NullPointerException
at jrun__wangzhan__register_confirm2ejsp1e._jspService(jrun__wangzhan__register_confirm2ejsp1e.java:61)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
Óû§×¢²á
function isValid(form){
if(form.user_id.value==""){
alert("µÇ¼Ãû²»ÄÜΪ¿Õ!");
return false;
}
else if((form.password.value.length8)){
alert("ÃÜÂë±ØÐëÊÇ3-8λ×Öĸ»òÊý×Ö!");
return false;
}
else if(form.password.value!=form.re_password.value){
alert("Á½´ÎÊäÈëµÄÃÜÂë²»Ïàͬ!");
return false;
}
else if ((form.e_mail.value=="")||(form.e_mail.value.indexOf('@',0)==-1)||(form.e_mail.value.indexOf('.',0)==-1)||(form.e_mail.value.length
Heylo,,Çë¼ì²éÄúµÄ×¢²áÐÅÏ¢
µÇ¼Ãû£º
ÃÜÂ룺
(²»ÏÔʾ)
E-mail£º
qq£º
产生如下错误:
/wangzhan/register_confirm.jsp:
null
java.lang.NullPointerException
at jrun__wangzhan__register_confirm2ejsp1e._jspService(jrun__wangzhan__register_confirm2ejsp1e.java:61)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
|
String name1=request.getParameter("user_id");
String password=request.getParameter("password");
String e_mail=request.getParameter("e_mail");
String qq=request.getParameter("qq");
String sql="select * from shadeuser where name='" + name1 + "'";
ResultSet rs = RegisterBean.executeQuery(sql);
这些变量中有的没有初始化成功
String password=request.getParameter("password");
String e_mail=request.getParameter("e_mail");
String qq=request.getParameter("qq");
String sql="select * from shadeuser where name='" + name1 + "'";
ResultSet rs = RegisterBean.executeQuery(sql);
这些变量中有的没有初始化成功
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。