Reputation: 89
I was trying to access values in a JSP page.Can I access the values of the Input Elements from servlet which are outside the form ?.
Upvotes: 0
Views: 136
Reputation: 920
You can put hidden input values inside the form, and copy the input elements' values on them with javascript when you need.
Or you can use ajax as they suggested in this question:
Sending text-field value to server without form tag
Upvotes: 1