You should be using the JSTL conditional tags, not Java code in your JSP. Using Java scriptlets in a JSP is an outdated and obsolete technique from over 11 years ago. (And the very type of problem you are having is one of the 17 bazillion reasons that Java code in a JSP has been discredited for over a decade.)
Here are some tips for proceeding:
First of all, rather than using a magic number of -1 to mean anything, use a Boolean value. Magic numbers are just poor practice all around.
Assuming that there is a Boolean property named admin in the session, the condition check simply becomes:
Result sets should never be sent to a JSP. That's another really poor practice that should be avoided. The information from the result set should be copied into normal Java objects and collections before being sent to the JSP.
Hope that helps get you started on a better path.
I often recommend that novices to JSP read the following articles:
The Secret Life of JSPsThe Front Man
and read
this JspFaq entry.