Skip to content Skip to sidebar Skip to footer

Call Servlet From Select Onchange And Pass Value

I'm trying to call my servlet GET method and pass value from html select by using onChange. So far I have something like this.
Copy

There is going to be no change in div and class attribute cannot be used to not access value in servlet you have define the name attribute. You can access the value in servlet like below

String selectedValue = request.getParameter("select123");

Post a Comment for "Call Servlet From Select Onchange And Pass Value"