0

So I am doing something like this for numbers:

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

Is there an equivalent for incrementing a letter? If 'a', then set as 'b', if 'd' then set as 'e' ? Something like:

<c:set var="c" value="${c++}"/>
ZakTaccardi
  • 11,582
  • 12
  • 55
  • 99

1 Answers1

1

The top answer here seems to have it. I would suggest using a scriptlet to get it done. This will let you execute and embed simple java function calls in your JSP

<c:set var="c" value="<%=Character.toChars( ## int value of c++ ##)%>"/>
Community
  • 1
  • 1
darkpbj
  • 2,663
  • 3
  • 20
  • 29