Thanks once more for all the details.Best Data Science Courses in Hyderabad, vé máy bay tếtvé máy bay đi Mỹ Vietnam Airlinebook vé máy bay đi Phápvé máy bay bamboo đi hàn quốcvé máy bay đi nhật bản khứ hồivé máy bay sang anh, Wow! jQuery script for making ajax calls and updating the JSP's should be written in the main page where you include all your JSP's.Working Example,index.jsp (main page)*********
My main page
result.jsp(second jsp page)***********
This is second JSP Page:
result2.jsp (third jsp page)***********
This is third jsp
ActionServlet.java******************protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String name=null; name = "Hello "+request.getParameter("name"); if(request.getParameter("name").toString().equals("")){ name="Hello User"; } response.setContentType("text/plain"); response.setCharacterEncoding("UTF-8"); response.getWriter().write(name); }In this example, when you run the index.jsp page and click on submit button that comes from the second jsp page, the div 'content' from third jsp page will be updated. Ranked among the Top website designing agencies in varanasi, india. Ajax XMLHttpRequest object. Ajax Java Example with Database. Please do let me know whether this solved your issue. Great Posts keep up the good work. Values from servlet into dropdownlist in jsp page using ajax. Thank you for the info... hi, this code is good. like third one also... for this i am using only ajax but i will get values but it wont replace with previous values of div. Download the complete source code from the below Download link. This is helpful post. Final Year Project Domains for CSE Spring Training in Chennai Project Centers in Chennai for CSE Spring Framework Corporate TRaining. I wanted to thank you for this websites! How can i return error value from servlet page.Following things i need 1.pass the value to servlet using ajax post $("msg").html("