I am trying to add a function that my HTML web page will send data to a servlet and then servlet insert data in database then I want to show an alert dialog box on that same HTML page and when data insertion is successful then a Box will be displayed(“Success Message”) and all values are resetted there on background(Initially they will contain data to be send)
Hate to say it, but this is not the correct forum. You are asking about JSP (Java Servlet Page), and this is the JavaScript forum. Although Java and JavaScript sound like they are the same, JavaScript is a completely different beast from Java.
I’m sure a moderator will move this to the proper forum, soon.
I moved it to General Web Development since there is really no other category that focuses on Java. I think this will get the most visibility to people who know Java.
I did take some Java in high school so can you post your code? This will help those who come along and they can immediately start working on your problem.
We/They need code that clearly shows your problem / something they can test/recreate.
Question is not specific tojava.Its Simple that a Server side script will Interact with database and send those value to a JSP,HTML or any front End.An Based on those values I need to add Label,Inputs on my Web Page.