general away from page action

Hi,

I have a page in which some modification of a database data occurs. However, I was wondering if there was a way to put an action in that would be called regardless of what page navigation component is selected. I have a menu that the user can choose one of many different other pages to go to and it would get tedious to have to put the database update code in the action for each menu item. Is there a way to do this.

Thanks for any help

[461 byte] By [jco1323a] at [2007-11-27 8:26:47]
# 1
You might want to examine if that is really the way you want your app to behave. Personally, if I were on a page that changed data and I used the menu I would expect the changes to be canceled.
RaymondDeCampoa at 2007-7-12 20:16:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
More specifically, I meant for there to be a popup asking if the user wanted to save his/her changes. That way I dont have to cancel or commit the changes by default but can let the user choose which one to do. Any help would be great.thanks
jco1323a at 2007-7-12 20:16:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...