org.apache.jasper.JasperException: java.lang.NullPointerException
很简单的注册过程出现以下错误typeExceptionreportmessagedescriptionTheserverencounteredaninternalerro...
很简单的注册过程出现以下错误
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
org.apache.jsp.adduser_jsp._jspService(adduser_jsp.java:78)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
JSP高手看看是什么问题呀?
这个问题解决了,可现在不填注册信息,会执行js的验证提示不能为空,可是之后还是会跳转到成功登陆的界面,是怎么回事呀?高手帮忙呀
上面的错误又出现了~~快崩溃了
知道的在给说说呀 展开
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
org.apache.jsp.adduser_jsp._jspService(adduser_jsp.java:78)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
JSP高手看看是什么问题呀?
这个问题解决了,可现在不填注册信息,会执行js的验证提示不能为空,可是之后还是会跳转到成功登陆的界面,是怎么回事呀?高手帮忙呀
上面的错误又出现了~~快崩溃了
知道的在给说说呀 展开
2个回答
展开全部
把你的js贴出来看看,如果js没有问题,那就清除一下浏览器的缓存数据。
<script language="JavaScript" type="text/JavaScript">
function check (){
if(符合条件)
form.submit();
else
return false;//不符合条件应返回false
}
</script>
可能是你判断用户名为空时有问题
你判断时应该
"admin".equals(request.getParameter("userName"));
不知道是不是这里的问题
<script language="JavaScript" type="text/JavaScript">
function check (){
if(符合条件)
form.submit();
else
return false;//不符合条件应返回false
}
</script>
可能是你判断用户名为空时有问题
你判断时应该
"admin".equals(request.getParameter("userName"));
不知道是不是这里的问题
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询