Hi first of all I want to mention that I am new to
J2EE. I am working on a small project (using older style
JSP's with scriplets only) for academic purpose. I am facing a problem that is as..
I have a form that is designed in a JSP. This form has 2 dropdown lists such that first one has fixed options and second one has to be populated dynamically (according to the option selected by user in first dropdown list) from the database (I am using Oracle). This is the task that I have to perform.
Now I am using a
Servlet that is called by the form (JSP as discussed above) by means of AJAX (I am not comfortable with it at all). This Servlet further uses a DAO class to fetch the required values from the database. But I am unable to make the call for Servlet. However I have checked the Servlet by calling it separately & its working fine. I am making some mistake when calling the Servlet using AJAX. Please let me know what is the fault that has disappointed me for whole the day. I am attaching my JSP, Servlet & some other files also. Please help me to dig it out.
My code is as follows :-
JSP :-
Servlet :-
web.xml :-
Please any help would be greatly appreciated.