An error occurred at line:18 in the JSP file:/control/tab/tab_appspeck.jsp
Duplicate local variable User
15:response.setcontenttype ("Text/xml;charset=utf-8");
16:string sid = (String) session.getid ();
17:SYSTEM.OUT.PRINTLN ("Sid" + SID);
18:user user = (user) Session.getattribute (Session.getid ());
19:system.out.println (User) Session.getattribute (Session.getid ());
20:string Confid = (String) request.getparameter ("Confid");
21:string action = (String) request.getparameter ("Action");
An error occurred at line:25 in the JSP file:/control/tab/tab_appspeck.jsp
Userte cannot be resolved
22:system.out.println ("Confid" + confid);
23:system.out.println ("action" + action);
24:
25:string str = Conhelper.appspeck (Confid, Userte);
26:response.getwriter (). write (str);
27:
28:
StackTrace:
At Org.apache.jasper.compiler.DefaultErrorHandler.javacError (defaulterrorhandler.java:92)
At Org.apache.jasper.compiler.ErrorDispatcher.javacError (errordispatcher.java:330)
At Org.apache.jasper.compiler.JDTCompiler.generateClass (jdtcompiler.java:439)
At Org.apache.jasper.compiler.Compiler.compile (compiler.java:356)
At Org.apache.jasper.compiler.Compiler.compile (compiler.java:334)
At Org.apache.jasper.compiler.Compiler.compile (compiler.java:321)
At Org.apache.jasper.JspCompilationContext.compile (jspcompilationcontext.java:592)
At Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:328)
At Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:313)
At Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:260)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:717)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:290)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:96)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:75)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:235)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:233)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:191)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:127)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:102)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:109)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:291)
At Org.apache.coyote.http11.Http11Processor.process (http11processor.java:859)
At Org.apache.coyote.http11.http11protocol$http11connectionhandler.process (http11protocol.java:602)
At Org.apache.tomcat.util.net.jioendpoint$worker.run (jioendpoint.java:489)
At Java.lang.Thread.run (Unknown Source)
Duplicate local variable user is the duplicate locals.
Just put that user Usertest = (user) Session.getattribute (Session.getid ()); Change the name of the variable.
Reason to find out is because I am in the current JSP page includ another JSP page and that JSP page has defined a variable user so in the current page in the definition of the user variable will error