File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Tracking JSP page changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Tracking JSP page changes" Watch "Tracking JSP page changes" New topic

Tracking JSP page changes

pramodh somashekara
Ranch Hand

Joined: Jan 30, 2006
Posts: 62
Hi All, We have a JSP page displaying data fetched from tables. Users can edit it and if they click on link for next page without saving it, we have to prompt the user whether to save it or not.

If they say 'yes', we have to save otherwise user can go to next page. NOw the question is, how to track changes in JSP page for all fields( I have around 60 fields in my page).

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Once the page is sent to the browser, the job of JSP is done. You'll need to use JavaScript for that.

[Asking smart questions] [About Bear] [Books by Bear]
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
In JSP, you can't track of the changes to the fields. Using javascript onchange event you can do some logic(to identify the changed rows) and trigger it on your next button.
I agree. Here's the link:
subject: Tracking JSP page changes
It's not a secret anymore!