dcsimg
Validating a Field of Type String printed using html:text
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chocks_karapagavinayagam
Posted On:   Monday, January 13, 2003 03:40 AM


Being an input field the user can enter "Pounds" or

"Pounds Sterling".

It allows the user to navigate to the next screen if the
user enter "PoundsSterling" and prompts the user saying
invalid Description if the User enters "Pounds Sterling"

The cause of the error is because of the space between the
words Pounds Sterling.How to implement the validation
in order to allow this condition.


Any help in this regard will be greatly appreciated.


cheers

chocks

Re: Validating a Field of Type String printed using html:text

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, January 13, 2003 08:27 AM

Make it a pulldown selection (html "select" if it is really simple static values, or Struts "html:select" with "optionsCollection" if you need to pull them in from a database) with only the acceptable values there in the first place.

About | Sitemap | Contact