Firstly, your JSP is using a lot of old technology. Scriptlets have been discredited for over 8 years now. You should update your JSP knowledge to embrace the JSTL and EL instead.
That said, the problem is that you are trying to emit output via scriptlets rather than scriptlet expressions. If you are going to continue to use scriptlet technology (not recommended), use scriptlet expressions (&using lt;%= %>) rather than scriptlets.