日期:2014-05-17  浏览次数:20905 次

错误:An error occurred at line: 18
An error occurred at line: 18 in the jsp file: /usercenter/Friend_invite.jsp
Duplicate local variable member_id
15: String z_id = getinfo.getInf();
16: getinfo.setField("a_id");
17: String a_id = getinfo.getInf();
18: String member_id = (String) session.getAttribute("member_id");
19: System.out.println(member_id);
20: String abc = "http://www.xxxxx.com/" + member_id;
21: %>


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


------解决方案--------------------
建议楼主平时没事的时候学学英语,多读读就行,要不你解决问题的能力会大打折扣的,有时候错误信息很明显,就是因为英文不好,所以弄不出来