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

In JSP Page restrict User to insert upto 2 decimal only

Status
Not open for further replies.

Inti

Programmer
Aug 7, 2002
1
CA
I am using Business Components for Java Tags to generate JSP Pages. Jsp Page contain one field which set the value of price. How I can restrict user to insert only upto 2 decimal value like '25.45'.

If user try to insert value like '25.45555' I can round the value before inserting in the database.

But How I can put condition on the screen field.

Thanks



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top