I am trying to remove an attribute in my jsp which was set in my action.
I say in Action : request.getSession().setAttribute("myattribute", "y");
In my jsp : <c:remove var="myattribute" />
I tried : <c:remove var="myattribute" scope="session"/> <c:remove var="{sessionScope.myattribute}" />
But none seem to work.
Can anyone please advice.
Thanks, Gayatri
Nathaniel Stoddard
Ranch Hand
Joined: May 29, 2003
Posts: 1258
posted
0
Is the tag being invoked or is it merely being piped to the response? Also, <c:remove var="{sessionScope.myattribute}" /> should be <c:remove var="${sessionScope.myattribute}" />
Granted, I've never actually used this action, but those are my first guesses.