myeclipse提示Multiple markers at this line是什么意思?
我用myeclipse做JSP,运行servlet 时错误,提示下面的是什么意思?
Multiple markers at this line
- Debug Current Instruction Pointer
- Line breakpoint:HandleRegister [line: 172] - service(HttpServletRequest,
HttpServletResponse)
原文件是这样的:
package servlets.zc;
import beans.zc.Register;
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HandleRegister extends HttpServlet
{
private static final long serialVersionUID = 1L;
public void init(ServletConfig config)throws ServletException
{
super.init(config);
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(Exception e){}
}
public String handleString(String s)
{
try
{
byte bb[]=s.getBytes("iso-8859-1");
s=new String(bb);
}
catch(Exception ee){}
return s;
}
public void service(HttpServletRequest request,HttpServletResponse response)throws IOException
{
Connection con;
Statement sql;
Register reg=new Register();
request.setAttribute("register", reg);
String name=request.getParameter("name").trim(),
pw=request.getParameter("pw").trim(),
opw=request.getParameter("opw").trim(),
em=request.getParameter("em").trim();
if(name.equals("")==true)
{
name="空";
reg.setBackNews("请输入您的信息,用户名称必须由字母和数字组成,带*号项必须填写。");
reg.setNameNews("您输入的用户名称为空,请重新输入。");
reg.setPwNews("");
reg.setOpwNews("");
reg.setEmNews("");
RequestDispatcher dispatcher=request.getRequestDispatcher("register.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
e.printStackTrace();
}
}
else if(pw.equals("")==true)
{
pw="空";
reg.setBackNews("请输入您的信息,用户名称必须由字母和数字组成,带*号项必须填写。");
reg.setNameNews("");
reg.setPwNews("您输入的密码为空,请设置您的密码。");
reg.setOpwNews("");
reg.setEmNews("");
RequestDispatcher dispatcher=request.getRequestDispatcher("register.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
e.printStackTrace();
}
}
else if(opw.equals("")==true)
{
pw="空";
reg.setBackNews("请输入您的信息,用户名称必须由字母和数字组成,带*号项必须填写。");
reg.setNameNews("");
reg.setPwNews("");
reg.setOpwNews("请确认您的密码。");
reg.setEmNews("");
RequestDispatcher dispatcher=request.getRequestDispatcher("register.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
e.printStackTrace();
}
}
else if(pw.equals(opw)==false)
{
reg.setBackNews("请输入您的信息,用户名称必须由字母和数字组成,带*号项必须填写。");
reg.setNameNews("");
reg.setPwNews("");
reg.setOpwNews("您两次输入的密码不一样,请确认您的密码。");
reg.setEmNews("");
RequestDispatcher dispatcher=request.getRequestDispatcher("register.jsp");
try {
dispatcher.forward(request, response);
} catch (ServletException e) {
e.printStackTrace();
}
}
else if(em.equals("")==true)
{
em="空";
reg.setBackNews("请输入您的信息,用户