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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hiding a -ve sign of a field on JSP

Status
Not open for further replies.

db2sachin

Programmer
Jun 9, 2003
24
AU
I have an amount field on my JSP page. This field can contain -ve values as well but I don't want to show the -ve sign on the page. How do I do that ? The data is passed thru a form (value object in Struts framework).
Thanks in advance
 
save the value in binary form in 2's Complement. this way you don't need a -ve sign, but there will be overhead to do to binary<->decimal coversion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top