Hey pard, you're here to get help, right? Well, a descriptive subject will do a lot more to attract the attention of the awesome volunteers here at the Ranch who can help you out! A simple title like "i need help" doesn't really make your post stand out and say "Read me!" Take a gander at this FAQ ⇒ UseAMeaningfulSubjectLine ⇐ for more info.
And, as always, step 1 is to move the code out of a JSP. JSPs are not the place for any Java code.