0

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

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by nHulk
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.