Hi
For lot of simpler calculations and validations using Javascript we used to declare variables and then do them and use it in Javascript before submitting a form.
Say, int x=2,y=3;x=x+y; and use it in the form as a default value and then we may validate the user input from Javascript and then post the form date using Javascript itself. For these situations, we need to use
Java code for declaring and calculations.
How to use the above declared value without making it as a scoped variable ?
Yours,
Sankar.B