----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
This is why the processing URL needs to be sepaate from HTML rendering URL.
When a user clicks on "Delete", the processing URL gets invoked. This
should contain just the business logic of deleting the item. It should then
redirect the browser to a display URL. The display URL should just output
HTML content.
This has many advatanges, on of which is that you will not see the problem
you mentioned. BTW, you will see the same problem in Netscape if you decide
to print the page or resize the window.
Bibhas.
----------
From: Jim Rainville <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: More fun with sessions
Date: November 21, 1999 12:41 PM
I'm writing a servlet that uses an HttpSession to manage sessions. Part of
the application builds an html page that contains a list form. The user can
select an item from the list then click a delete button - this results in
some JDBC calls in the servlet that deletes the item from a database. The
screen is then repainted and the deleted item is no longer in the list.
This works great except for one thing - if the user hits reload on their
browser, the delete button is still selected and the next item in the list
is deleted. Anybody have any idea of how to get around this?
Thanks,
Jim
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]