Dúvida em desabilitar scripting em JSP

0 respostas
A

Olá

Estou tentando desabilitar o uso de scriptlets nas JSP.

No web.xml coloquei o seguinte:

<jsp-config>
		<jsp-property-group>
			<url-pattern>*.jsp</url-pattern>
			<scripting-invalid>
				true
			</scripting-invalid>
		
		</jsp-property-group>
	</jsp-config>
Porém visualizei normalmente a seguinte JSP (teste_head_first1.jsp)
<%@ page import="java.util.*" %>
<html><body>
Teste scriptlets...
<% ArrayList list=new ArrayList();
    list.add(new String("foo"));
%>
<%= list.get(0) %>
</body></html>

Não tinha que dar alguma mensagem de erro?

Criado 12 de julho de 2006
Respostas 0
Participantes 1