michealmale
Programmer
Hi Guys,
I am writing a program in java whcih includes some jsp pages also. In my jsp page i have a situation where a user is suppose to enter Vendor Id. This textbox is limited to 5 characters.
The user might enter 325 or 12345 or 12. If the user enter less than 5 digits i would like to append 00 to make it a 5 digiti. Meaning User ent:
325
After clicking my add button to presist the data in the database i would like to make 325 to 00325 same thing goes for 12 will be recognized as 00012.
Can someone help me on this?
I am writing a program in java whcih includes some jsp pages also. In my jsp page i have a situation where a user is suppose to enter Vendor Id. This textbox is limited to 5 characters.
The user might enter 325 or 12345 or 12. If the user enter less than 5 digits i would like to append 00 to make it a 5 digiti. Meaning User ent:
325
After clicking my add button to presist the data in the database i would like to make 325 to 00325 same thing goes for 12 will be recognized as 00012.
Can someone help me on this?