• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tracking the changes made in browser window

 
HungryJavaGoat
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am displaying a profile data in browser window after executing a JSP. There is a button called Close . When the user clicks the close button.. if the user has made some changes.. then i need to save that data to DB othewise i shouldn't . How can we check that ? .

in javascript we can do one to one checking for each form elements ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can, but this is not something I'd do on the client with javascript. Much better to check on the server.
 
HungryJavaGoat
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah..thats right .. thinking to do that in controller layer before making call to facade layer (EJBs). Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic