I'm testing a JSP MVC application on Netbeans 731. This is an admin application which simply queries a mySql DB and returns a list of users. The application starts with index.jsp where the user clicks the 'display' hyperlink. This then calls a displayUsers GET action which uses the DisplayUsersServlet. The DBUser class is used as a DAO that talks to the DB.
The application compiles and runs without any problems. I even tested the Connection pooling and manually queried the DB to make sure the values are there. But when I run the application I just see the columns displayed without the values. I'm thinking that I made some mistakes in coding either the UserDB class and/or the DisplayUsersServlet.
Would really appreciate any advice. My code is:
users.jsp
The application compiles and runs without any problems. I even tested the Connection pooling and manually queried the DB to make sure the values are there. But when I run the application I just see the columns displayed without the values. I'm thinking that I made some mistakes in coding either the UserDB class and/or the DisplayUsersServlet.
Would really appreciate any advice. My code is:
users.jsp