Did some reading. Nice articles.
Java code in JSPs has been discredited since the introduction of JSP 2 in 2002
Oh well. Better late then never, right?
In this same page? You realize that the Java code in the page is executed before the page is displayed, right?
I did realize. Planned to solve it by checking if it's null or not.
Found some promising jstl examples (Which means this post should be moved to JSP forum...
But in case I want to leave the sql select in a servlet and not in the jsp: (see example)
How should I retrieve the info and use it as part of the tag?