Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get next character

Status
Not open for further replies.

GoSooJJ

Programmer
Feb 24, 2001
76
US
Hi all,

I have question about get next character from JSTL tag or jsp page. If i want to have "C" from "B", how can i do that? Can we do this in jstl tag?
Thank you.
 
i can give u only the idea, u have to get the ascii value of B (which will be a number) increment it by one and convert it back to a character...

Known is handfull, Unknown is worldfull
 
thx for the reply.
anyone know how to convert ascii value to number and convert it back to a charater?
For now, i just used list of alpha to get next character.
 
try google, i got a function for converting it to ascii.

<%=(int)'A';%>

Known is handfull, Unknown is worldfull
 
char asciichar = 'A';
int asciinum = (int)asciichar;
char asciichar2 = (char)asciinum;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top