No. You are not. Not at all.
You can't just mix them up and expect them to execute together. Please read this article to understand how JSP works.
Also, putting Java code into a JSP is bad practice that has been obsolete for 12 years! 12 years! Do you not think it's time to catch up to 2013?
[Edit: Ulf was quick on the draw and snuck his post in there before me]