how can i reuse same variables that i create using <c:set var="index" />

hi all,

please some one helpme!!!!!!

how can i reuse same variable that i create using

<c:set var="index" value="${0}"/>

cause later in the program i use index to do some condition and based on that i increment ...

so for example if i say...

<c:iftest="${index==0}">

<c:set var="index" value="${index+1}"/>

</c:if>

will it be like

if(index==0)

{

index++;

}

can i do like i did be4. if not what do i need to do to reuse. cause i use the variable atleast 5 time and its keep changing on diff condition level.

[643 byte] By [neelaa] at [2007-10-2 14:56:17]
# 1
Have you tried it?It should work, provided you are on the same page.The c:set tag creates the variable in pageScope by default.If you forward to another JSP you need to set the scope to be "request" so that it is still available.
evnafetsa at 2007-7-13 13:38:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...