-1

I am using html5, javascript and JSP for my project. I want to know if there is some method that i can used to execute a query from my servlet without actually posting back the page. i know it can be done in ASP.net but i do n't how it can be be done in java script and JSP. Actually i have a dynamic webpage displaying data from server.what i want is that in a click event of button i want to execute a query form server and update it on the page. i know i can submit the form but it will submit the page which i want to avoid.Any suggestion...... regards nquazi

jmail
  • 5,944
  • 3
  • 21
  • 35
Nhqazi
  • 732
  • 3
  • 12
  • 30

1 Answers1

0

You can use an AJAX request to submit inputs and get back an output without reloading that page. Here is a previous stackoverflow answer that shows you how to do a HTTP GET request.

HTTP GET request in JavaScript?

You will then need to process your inputs, run the query, and send back an output on the backend server.

Community
  • 1
  • 1
Pulkit Sethi
  • 2,301
  • 1
  • 12
  • 7