Make AddToCart.jsp to be invisible and after adding the product to the cart
to redirect the user to another page (use it only for adding data, not for
displaying anything). Then you will not have any get/post values to be
submitted, so if the refresh button is pressed, then nothing is to be
changed.
Regards,
Stefan Bushev
>From: Naik Ishwar <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: regarding refreshing the page
>Date: Tue, 3 Oct 2000 03:28:41 -0700
>
>Hi ,
> I have jsp page, which displays the search results of
>different products. And whenever i select any product,
>it calls AddToCart.jsp passing the id of the product.
>Then AddToCart.jsp adds the product to the shoping
>cart.
>Now there is a problem.
>If i refresh(pressing the refresh button) the same
>product is added again and diplayed. Is there any way
>i can avoid this.
>please do help me. This is very urgent
>
>TIA
>ishwar
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
>http://photos.yahoo.com/
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets