Hi nitin!
I would attack this issue in two possible ways.
Option 1:
=========
addForm.do - Action.saveToken() in execute;
listRecords.do - displays records +
if( this.isTokenValid( request, true ) ) // true will reset the token (i.e. on refresh, the token will not match)
{
// do save
}
// fetch records from DB
Option 2:
=========
addRecordForm.do - displays the form
addRecord.do - does the actual addRecord, and does a REDIRECT to listRecords.do
listRecords.do - display records
HTH,
Kunal
On Wed, 18 Aug 2004 05:10:41 -0700 (PDT), nitin dubey <[EMAIL PROTECTED]> wrote:
The user is refreshing on the LIST page. :) --- nitin dubey <[EMAIL PROTECTED]> wrote:
---------------------------------------------------------------------Hello,
I have a page wherein I am listing a set of records.
This page also has a button for adding new record. Now if the user clicks the [Add New] button, adds the record(after which he is directed to the same listing page) and refreshes the same record is added once more. Here onwards every refresh ends up adding 1 more record to database. Any suggesstions to get rid of this problem ?
I have tried <controller nocache="true" /> but no success :(
nitin
__________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
--------------------------------------------------------------------- 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]