Almost sounds like you would want to capture this using JavaScript and
depending on if the user says 'yes' to the save, then submit the form,
otherwise go on to their menu-page.

The flip side might be to have all requests go to one action, which can
then determine if the form data has changed, send a response back to the
client saying 'save or no save', etc. 

Might be easier at the client and less trips to the server.

-----Original Message-----
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] 
Sent: Monday, February 25, 2002 4:25 PM
To: [EMAIL PROTECTED]
Subject: Navigation (save first)

Subject: Navigation (save first)
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
Let's say a user enters some data on a form.
And then click on a menu to go to some other from.

I want to ... interrupt this and ask "Do you want to save?" If yes, than

call save method on a formBean, and then go to the new page (unless 
validation).
What is a good way?

tia, Vic
(thanks in advance)


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to