https://issues.apache.org/bugzilla/show_bug.cgi?id=51379
Bug #: 51379 Summary: The method setVar(String) in the type DataTableTag is not applicable for the arguments (JspValueExpression) Product: Tomcat 6 Version: 6.0.14 Platform: PC OS/Version: Windows XP Status: NEW Severity: blocker Priority: P2 Component: Servlet & JSP API AssignedTo: dev@tomcat.apache.org ReportedBy: kallol.chaudh...@tcs.com Classification: Unclassified I developed a JSF project using eclipse 3.4.1 and Apache Tomcat 6.0.14. Here I am trying to access the MySQL database table having one single column and display the value of that column in the JSP page using h:dataTable. It is giving the error 'The method setVar(String) in the type DataTableTag is not applicable for the arguments (JspValueExpression)'. The jsp file is data.jsp. The complete stack trace is :- An error occurred at line: 9 in the jsp file: /data.jsp The method setVar(String) in the type DataTableTag is not applicable for the arguments (JspValueExpression) 6: <center> 7: <br><br><br> 8: <f:view> 9: <h:dataTable id="dt1" value="#{tableBean.perInfoAll}" var="(String)item" bgcolor="#F1F1F1" border="10" cellpadding="5" cellspacing="3" rows="4" width="50%" dir="LTR" frame="hsides" rules="all" summary="This is a JSF code to create dataTable." > 10: 11: <f:facet name="header"> 12: <h:outputText value="This is 'dataTable' demo" /> 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:423) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:414) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:455) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:139) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266) ... 14 more -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org