This is error its throwing :

javax.servlet.ServletException: /dtl.xhtml @13,75 value="#{registerBean.reteriveData()}" Error Parsing: #{registerBean.reteriveData()}
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

dtl.xhtml

 <h:dataTable  value="#{registerBean.reteriveData()}" var="rb">
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Model" />
                    </f:facet>
                    <h:outputText value="#{rb.fname}" />
                </h:column>


            </h:dataTable>

registerBean.java

 public List reteriveData() {
        Connection con = null;
        List list = null;

        try {
            DBConnection db = new DBConnection();
            con = db.getConnection();
            PreparedStatement ps = con.prepareStatement("select * from regtbl");
            ResultSet rs=ps.executeQuery();


            while(rs.next())
            {
                registerBean rb=new registerBean();
                rb.setFname(rs.getString(3));
                list.add(rb);
            }
        } catch (SQLException ex) {
            Logger.getLogger(registerBean.class.getName()).log(Level.SEVERE, null, ex);
        }
        return list;
    }

Please help to solve it ..... i am using tomcat/mysql

please help me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.