134
rated 0 times
[
138]
[
4]
/ answers: 1 / hits: 183501
/ 13 Years ago, mon, april 18, 2011, 12:00:00
Can anyone tell me how to pass JavaScript values to Scriptlet in JSP?
More From » java
Can anyone tell me how to pass JavaScript values to Scriptlet in JSP?
Your javascript values are client-side, your scriptlet is running server-side. So if you want to use your javascript variables in a scriptlet, you will need to submit them.
To achieve this, either store them in input fields and submit a form, or perform an ajax request. I suggest you look into JQuery for this.