Hi,
I have one jsp and one servlet.
I am using a jsp in which i am entering some values like name, empid etc. and there is a dropdown list for location. I want when i select a particular location then a servlet is called in which i acess the values in an arraylist and uses
request.setAttr ibute,requestDi spatcher and forward to pass these values to the first jsp.
Another dropdown on the jsp is populated using the values returned from servlet. Currently the servlet is called when the form is submitted. but i want it to be called onchange of location dropdown.
Another problem is that all the entered values before calling the servlet get reset to their initial values while these should remain as it was before calling the servlet.
How these problems can be solved?
Thanx
I have one jsp and one servlet.
I am using a jsp in which i am entering some values like name, empid etc. and there is a dropdown list for location. I want when i select a particular location then a servlet is called in which i acess the values in an arraylist and uses
request.setAttr ibute,requestDi spatcher and forward to pass these values to the first jsp.
Another dropdown on the jsp is populated using the values returned from servlet. Currently the servlet is called when the form is submitted. but i want it to be called onchange of location dropdown.
Another problem is that all the entered values before calling the servlet get reset to their initial values while these should remain as it was before calling the servlet.
How these problems can be solved?
Thanx
Comment