Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a jsp page,(in struds framework) I have defined a html:text field and the field property is String type(defined in bean). Now if I enter the integer value in text field how i have to separate these integer with commas like (1234,212,123)
Posted
Comments
phil.o 17-Jun-14 10:57am    
Your question is not clear: how you have to do it? The best way is the list separator defined for your culture.
For mine, for example, the list separator is the semicolon (';').
Sergey Alexandrovich Kryukov 17-Jun-14 12:28pm    
I think it's clear (most likely). Telling the culture is not enough, OP also needs to indicate that thousand separator should be used.
The whole topic is surprisingly big. I tried to reference all what's involved in my answer, please see.
—SA
[no name] 17-Jun-14 12:53pm    
Java also has a split function for the string class.

1 solution

 
Share this answer
 
Comments
Matt T Heffron 17-Jun-14 12:59pm    
Sergey these are good references...
HOWEVER the OP was asking about Java/Javascript/JSP, not .NET.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900