Iam developing an application where in I need to integrate HTML with Servlets and servlets to interact with Database using JDBC and send the results back to HTML page withour refreshing it.
It would be of great help if anyone can help with an example . Iam new to Java related technologies.
When you run the code on the main page above and your other page called processpage can extract the url processpage?first=hello&last=world and output "hello world" you will see that text in the div id results.
How you connect to your database in your java page is another process.
If this makes sense you are good to go. If not, take just one piece at a time before going on to the next.
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
On the front end, you want to use an ajax request to your back end page.
You can do this in pure javascript, I like to use jquery
http://api.jquery.com/jquery.ajax/
Open in new window
On your processpage, accept the get just as if the page was processpage?first=hello&la
On your main page, make a page using code similar to what I have above
Open in new window
When you run the code on the main page above and your other page called processpage can extract the url processpage?first=hello&laHow you connect to your database in your java page is another process.
If this makes sense you are good to go. If not, take just one piece at a time before going on to the next.