Foros de discusión

Duplicate local variable'' ''

thumbnail
emile boutal, modificado hace 14 años.

Duplicate local variable'' ''

Junior Member Mensajes: 27 Fecha de incorporación: 8/03/10 Mensajes recientes
hey

I have a JSP file that gives this error "Duplicate local variable response"


The problem is that There are no other JSP pages being included in the problematic jsp page and "response" variable is not defined elsewhere in the page.

For testing purposes, I renamed response to res, resp... , rebuilt the project but it didn't work.

Any ideas please.

Thanks.
Marcel Brueckner, modificado hace 10 años.

RE: Duplicate local variable'' ''

New Member Mensajes: 7 Fecha de incorporación: 30/08/13 Mensajes recientes
Only for future reference (since the question is quite old):
This error comes from including the tag lib library page multiple times, such as

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


If you have a bunch of custom includes like that it also can happen that taglibs have conflicts (very unlikely if you use standard liferay includes only!).