how to remove leading zeros from a session variable in jsp -


i have session variable -${redata.totalcharge} may have values 000000033. when display value in jsp need 33 displayed. how do ? defined string data stored charecter in db2 database.

integer.parseint(value) work. in preprocessing code, rather in jsp. also, <fmt:formatnumber /> should work.

but - try fixing in database. shouldn't storing integers strings.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -