That's ok, we all start somewhere. Something esle you should do is to be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
As a beginner in JSP, you should immediately be advised that putting Java code (especially database code) in a JSP is considered a very poor practice. Java code is much easier to deal with when factored into beans and model classes.