What are the effects of disabling scripting in a JSP?

前端 未结 2 455
你的背包
你的背包 2020-12-18 08:39

I recently read how to disable scripting for an entire application by adding the following elements to the web.xml file:


    

        
2条回答
  •  余生分开走
    2020-12-18 08:58

    It disables scriptlets, which is basically java code in the JSP e.g.

    <% request.getAttribute("bob"); %>

    would not be allowed.

    JSTL, EL, etc. will all work fine.

提交回复
热议问题