Not unless you want to radically redesign how JSPs run.
The HTML that it creates is also not safe.
The best you can do is use Model-2 MVC, where you have servlets that work with JSP. Let the servlet worry about binding, checking, and verifying that the necessary objects fall into the page area. Pages should be display-oriented only.
The idea of ββthe script is terrible. No one should put scriptlet code in the JSP. Learn and use JSTL.
source share