----- Original Message -----
From: "Hayer, Jagjeet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 12:27 PM
Subject: RE: Servlet display


> Well this sounds very similar to my problem, surely someone has an
> answer/solution???
>
>

I have a solution for the redirect problem.  It is a simple solution from
someone on the UD newsgroup.

Someone on the UD newsgroup was able to come up with some code that fixes
this problem in UD 1 if you add the code to the page itself, and in UD 4 it
can be used as a server behaviour.  They simply added a few lines of code,
which you insert before your HTML code begins, and test the flags for the
insert/update/delete:

*****PUT THIS JUST BEFORE THE RECORD SETS**

<% /**
       *  The dontRedoPage Server Behavior.
       *  Magus Research, December 2000
       *  Prevents re-running the content if MM
       *  delete, update or insert flags are up.
       */
if (request.getParameter("MM_delete") == null &&
request.getParameter("MM_update") == null &&
request.getParameter("MM_insert") == null)
{ %>

*****HTML HERE****


****Put this at the end of the page.***
<% } /* end of dontRedoPage */%>


You should be able to adapt this to fix your problem, even if you are not
using UD.  It worked for me.

Val


Reply via email to