Hello friends, Can any one show me a code that assigns javascript variable with jsp variable. I need this code for my form validation which checks input value of text field onBlur with database value.
The important thing to keep in mind is that at the point when the JSP code is being run to generate the page, any JavaScript in the page is static text, just like HTML. You can do it if you put something like this in your page: