You can have a form id as part of every form you're showing to client. On
servlet side you would check whether this form was processed and do appropriate
action (redisplay old results or deny to perform the action again).
You would have to obviously come up with a scheme for your ids and how to mark
and store them. Additionally you can add sequence checking to it so that when
one form submission is required before other you can know that based on the form
id.
d.
Sandip Debnath wrote:
> Thanks Bob,
> But how to avoid that from inside the servlet.
> Sandip
>
> On Mon, 18 Sep 2000, Robert Rainwater wrote:
>
> > Date: Mon, 18 Sep 2000 00:54:50 -0400
> > From: Robert Rainwater <[EMAIL PROTECTED]>
> > Reply-To: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology. <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Re: Servlet result instance
> >
> > Sunday, September 17, 2000, 9:16:12 PM, you wrote:
> >
> > > Hi,
> > > This may be a stupid question or already well discussed in the past, but
> > > I did not find any answer from this mailing list repository. Anyway the
> > > problem is when I resize my browser window after getting the result from
> > > a servlet, the browser once again sends the request to server and server
> > > runs the servlet once again and the browser gets refreshed. How to stop
> > > this unnecessary thing.
> >
> > In some versions of Netscape, when the browser is resized, the window
> > is reloaded. So in effect it sends the request again. So, you must
> > take care of this on your side (servlet) too avoid any errors.
> >
> >
> > --
> > Regards,
> > Robert
> > mailto:[EMAIL PROTECTED]
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
David Mossakowski [EMAIL PROTECTED]
Programmer 212.310.7275
Instinet Corporation
"I don't sit idly by, I'm planning a big surprise"
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html