How to remove the value of the variable with JSTL?

1

I'm testing to clear a list of objects that is passed to the JSP, and I execute the command below:

<c:remove var="lista" scope="session" />
<c:out value="${lista}"></c:out>

But when I call the page with the JSP, I find the memory address of the list that should have been deleted and normally fills the HTML elements with the attributes of the objects that are defined in the list.

EDIT

I'm using a tag created by me, can this influence? (object contains list):

<ec:form beanName="objeto" controllerUrl="/parametro1/parametro2">

If I pass by removing the object with:

<c:remove var="objeto">

A NullPointerException pops up.

    
asked by anonymous 28.09.2015 / 22:37

0 answers