if ("".equals(username_html)) {
response.sendRedirect("showwrong.jsp?wrong=usernameisnull");
}
if ("".equals(password_html)) {
response.sendRedirect("showwrong.jsp?wrong=passwordisnull"); }
if ("".equals(repassword_html)) {
response.sendRedirect("showwrong.jsp?wrong=repasswordisnull"); }总是提示我第二个
response.sendRedirect("showwrong.jsp?wrong=passwordisnull");这句有错误,,是不是第一次满足转的条件,,代码继续执行,系统不知道到底转哪个呀??出错信息为:Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:432)
org.apache.jsp.newuser_jsp._jspService(newuser_jsp.java:141)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)感谢
response.sendRedirect("showwrong.jsp?wrong=usernameisnull");
}
if ("".equals(password_html)) {
response.sendRedirect("showwrong.jsp?wrong=passwordisnull"); }
if ("".equals(repassword_html)) {
response.sendRedirect("showwrong.jsp?wrong=repasswordisnull"); }总是提示我第二个
response.sendRedirect("showwrong.jsp?wrong=passwordisnull");这句有错误,,是不是第一次满足转的条件,,代码继续执行,系统不知道到底转哪个呀??出错信息为:Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:432)
org.apache.jsp.newuser_jsp._jspService(newuser_jsp.java:141)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)感谢
解决方案 »
- jrebel 热加载
- 用了rs.next() 仍旧出现[Microsoft][SQLServer 2000 Driver for JDBC]Invalid operation for the current 错误!!!!!
- struts+jpa+spring出现javax.servlet.ServletException: BeanUtils.populate
- org.hibernate.lazyinitializationexception:could not initialize proxy - no Session
- hibernate many to one 的一个小问题
- 冰天雪地 裸体360°旋转寻找高手解决小弟的问题,邪邪邪
- 这个取网页中图片的正则表达式为什么会报错?
- 关于tomcat webinf web.xml的问题
- 关于文件上传,急急。。。。。。。。。。。
- 菜鸟有问题:关于何如编译servlet和javabeans??!!!
- 在jbuilder中调试显示正确中文,部署后怎么就不能正确显示中文了
- 有在 Ubuntu 下 用 jsp 连接 MySQL 的吗?
response.sendRedirect("showwrong.jsp?wrong=usernameisnull");
return;
}if ("".equals(password_html)) {
response.sendRedirect("showwrong.jsp?wrong=passwordisnull");
return;}
if ("".equals(repassword_html)) {
response.sendRedirect("showwrong.jsp?wrong=repasswordisnull");
return;
}