Now I do not know what to say:
Statement st = null;
ResultSet rs = null;
rs = st.executeQuery("Select description from user ");
Sorry If I sound rude, But do you expect some magic ;) , you are calling the method on an object (st) reference set to NULL, even if the sun doesn't rise tomorrow that code is going to throw a NullPointerException.
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
One more thing to add, setting up connection with database from JSP is bad thing to do. Learn to use servlets and then do JSF
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902