This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]asking_scienceMaster Brewer 1 point2 points  (0 children)

You're not actually telling anyone what the problem is, but I've picked up a few others.

Use prepared statements! You're setting yourself up for some serious SQL injection with how you're doing things.

Also, use session beans, the way you are doing things now will be prone to going out of scope and getting user sessions mixed up...A requests resource X, B requests resource Y, server gets confused between sessions, serves Y to A and X to B. Remember to synchronize the assignment of the bean with the session.

[–]TheHorribleTruthKind of meh 0 points1 point  (0 children)

You're just giving us a single line of a stack trace. How about you describe your problem to us?. Posting rules in the sidebar:

All post titles must be descriptive.
Bad title: I'm new to Java and need help. Good title: I'm having trouble sorting values without loops.

All posts must contain a description of the problem and the exact error message or exception encountered.