You won't be guaranteed to catch any event like browser close or the user clicking alternate navigation, bookmarks or even typing in a new url.
If it were are definite requirement, you could simply attempt to catch that even, then prompt the user with something like "Warning - you have unsaved changes. If you wish to save your changes press ok". -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 22, 2004 9:07 AM Subject: Need Best Practices Thoughts on Actions > > > > > > I've got a requirement where if the user tries to leave a form without > saving changed data they have the option to save "on the fly" before going > to the link they clicked or go to the link without saving the data. On the > "save" option I pass the destination (the name of a forward in the > SaveAction action tag of strut-config) to the SaveAction which does the > lookup then forwards to their destination. My problem is how to handle the > option of not saving. My thought now is to have a RouterAction class that > takes a request parm and uses it to look up a forward in it's action > mapping. Is this an good way to handle this or are there better ways? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]