• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to show message in jsp when update a record in database

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys.....

please help me out....

I m working on a simple college project of mine.

So, i have created two JSP files, In first Jsp (show.jsp) file i am showing or displaying the records from database (MySQL). In each row i create a button with the help of Bootstrap 4 which is used to edit that row. On click on that button a modal (Bootstrap component) will open and a form i have created in the modal to edit input fields. So that if i submit the form by editing some input fields that it goes to another JSP (edit.jsp) file, in this jsp file i have only java code and SQL query for updating records after this it goes redirect to the first JSP (show.jsp) file and show records again with updation. All things working properly.

So my problem is that if i update any of row then i dont get any msg of update like : your data is updated successfully !
I also add some code for showing msg if i update any row but didnot worked. i just add alert function in second jsp file (edit.jsp) to show message but it doesnot working and it redirect to first jsp file without showing alert msg.

so please provide me that code for showing msg when i update any row.
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic