Creating web user control in java

Hi All,is it possible to create a web user control in javasay e.g we need to have a textbox control for web application which will allow only 0-9 numbers and A-Z alphabetsalso will have some defined proeprties Thanks,Mahesh.
[266 byte] By [MaheshPa] at [2007-10-2 18:24:50]
# 1
Sure, it is possible if you can code JavaScript.Or you might find JavaScript methods that do just that in the Internet and embed them into your page.
sector_a at 2007-7-13 19:45:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Javascript would certainly perform client-side validation of user input, but it should not be considered enough to prevent illegal input from reaching your server.

For example, it would be a simple matter for me to grab your form, save it locally on my machine, remove the javascript validation and submit whatever I wanted to your server.

Have a look at some of the various frameworks available, such as Struts or Spring. It will be helpful to learn about Regular Expressions, as they are powerful ways to validation, and are usable on the server side.

Regards.

SteveVaya at 2007-7-13 19:45:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...