|
From: Aaron H. <aa...@me...> - 2001-10-05 03:45:40
|
> The other thing to consider is using self.application().forwardRequest()
> instead of sendRedirect(). This causes the forwarding to happen entirely
> inside of the server instead of bouncing the redirect back to the
> application. The advantage is that forwarding is very fast. The
> disadvantage is that the URL that the user sees in their browser is the
> original URL, not the one that you forwarded to.
I moved a bunch of code to redirect internally and caused some pretty obvious usability errors.
I added a record based on GET parameters and then internally redirected to a page that showed the update table.
If the user hits refresh ANOTHER record gets added (as it should), also if the users goes past the page and then hits the BACK
button he adds another duplicate record.
I like the internal redirect, but this was a bad use of it.
And I just finished fixing the problem about 10 minutes ago.
-Aaron
===================================================================
As Isaac Newton would say now:
If I see further than others, it is because I stand on
the shoulders of giants too dumb to patent their discoveries.
(Gregory Palast, http://www.observer.co.uk/ )
|