I have a form field ( text box ), i want to limit the input to numbers that too between 1-255 only.
How can i validate the form field to control the user input?.
How can we do in java script?
How can we control the same in Struts - Form Bean i.e Validate() method?
Can anyone provide code snippest?