struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert" <rmcint...@bull-enterprises.com>
Subject RE: Navigation (save first)
Date Mon, 25 Feb 2002 22:30:04 GMT
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:@Basebeans.comstruts@basebeans.com] 
Sent: Monday, February 25, 2002 4:25 PM
To: struts-user@jakarta.apache.org
Subject: Navigation (save first)

Subject: Navigation (save first)
From: Vic Cekvenich <vic@basebeans.com>
 ===
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message