I have attached textBox in a HTML page with the help of HTML.(Like input type).Now i want to validate the textbox with the help of java.And also store the values what ever is entered in the textbox in a variable which is declared in java.

is it possible to do??
if yes please send me some code by which i can implement the same..

Please help me...