I have a form which user enters data and upload a picture, when user clicks submit, the browser would go to a “confirmation page(its actually blank)”, I’d rather have a pop-up confirmation message that when user clicks ok it refreshes the page.
Any ideas?
some details:
first, the user enters data in the textfields and selects a file to upload
when user clicks “submit button”, a confirmation page pops up, user can click “OK” or “Cancel”
if use clicks “OK”, servlet is called to handle the form data including the file user wants to upload, if form submit is successful then a “success” pop up
mine seems to go to the blank confirmation page every time, no success pop up
If you set the
actionattribute of the form to empty e.gthe form will submit to the same page.
You can optionally retrieve the value in the form elements without actually submitting the form, you then process it and display your confirmation message then refresh or go to another page.