Re: regarding refreshing the page
Hello, R u using some Vector or Hash Table for storing the items seleectd by the client. i think u r using sessiosn for this. let me know this first satish --- Naik Ishwar <[EMAIL PROTECTED]> wrote: > hi , >thanks. please tell me is it ok, if i forward the > request to another jsp page, after the product is > added to the cart. > But i am having problem with this. > > what do you mean by virtual store, do you mean using > vector or hashtable? > > TIA > ishwar > > --- Marcelo Mathias Lima <[EMAIL PROTECTED]> wrote: > > Well, well > > > > I think u will get this only redirecting to other > > page (without the > > parameters) after u add the products to cart. > > > > I have a virtual store too and I simple ignore > > this > > > > > > - Original Message - > > From: Naik Ishwar <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, October 03, 2000 7:28 AM > > Subject: regarding refreshing the page > > > > > > > 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 > > > > > > > > === > > 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 > > > __ > 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 __ 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
Re: regarding refreshing the page
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
Re: regarding refreshing the page
hi , thanks. please tell me is it ok, if i forward the request to another jsp page, after the product is added to the cart. But i am having problem with this. what do you mean by virtual store, do you mean using vector or hashtable? TIA ishwar --- Marcelo Mathias Lima <[EMAIL PROTECTED]> wrote: > Well, well > > I think u will get this only redirecting to other > page (without the > parameters) after u add the products to cart. > > I have a virtual store too and I simple ignore > this > > > - Original Message - > From: Naik Ishwar <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 03, 2000 7:28 AM > Subject: regarding refreshing the page > > > > 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 > > > > === > 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 __ 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
Re: regarding refreshing the page
Check "Web Development with Java Server Pages" by Duane K. Fields and Mark A. Kolb. There's a section on transaction integrity on page 269 (chapter 9). Source code: www.manning.com/fields www.taglib.com Good luck, Kachana --- Marcelo Mathias Lima <[EMAIL PROTECTED]> wrote: > Well, well > > I think u will get this only redirecting to other > page (without the > parameters) after u add the products to cart. > > I have a virtual store too and I simple ignore > this > > > - Original Message - > From: Naik Ishwar <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 03, 2000 7:28 AM > Subject: regarding refreshing the page > > > > 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 > > > > === > 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 __ 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
Re: regarding refreshing the page
Well, well I think u will get this only redirecting to other page (without the parameters) after u add the products to cart. I have a virtual store too and I simple ignore this - Original Message - From: Naik Ishwar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 03, 2000 7:28 AM Subject: regarding refreshing the page > 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 > === 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
regarding refreshing the page
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