Do not allow the page to be cached by the browser, then it must reload each
time it is called, clearing the textboxes.
Or, disable the back button so they can't go back, I think it is done using
JavaScript.
this code will stop the page from being cached:
response.setDateHeader("Expires", 0);
response.setHeader("Progma", "no-cache");
if (request.getProtocol().equals("HTTP/1.1")) {
response.setHeader(Cache-Control", "no-cache");
}
-Scott
_____
Scott Chase
Information Management Consultant
[EMAIL PROTECTED]
TEL: (810) 242-0194
FAX: (248) 312-3094
MatrixOne, Inc.
5440 Corporate Drive #200
Troy, MI 48098 USA
www.matrixone.com
"The First in Intelligent Collaborative Commerce"
_____
> -----Original Message-----
> From: Ruaidhr� Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 18, 2001 3:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Clearing form fields after a submit?
>
>
> Hi,
> Sorry, I meant, when a user hits the back button.
> I want the form fields to be cleared if the user hits
> the back button after a submit.
> Know what I mean ?
> thanks
> Rui
> --- Shawn Zhu <[EMAIL PROTECTED]> wrote:
> > interesting, on a form submission the visible fields
> > automatically clears. So what did you do?
> >
> > > -----Original Message-----
> > > From: Ruaidhr� Fernandes
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 18, 2001 11:03 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Clearing form fields after a submit?
> > >
> > >
> > > Hi all,
> > > Can anyone tell me hoe to clear form fields after
> > > clicking on the submit button.
> > > I have fields which contain sensitive info. When
> > the
> > > submit button is clicked the data is sent to
> > another
> > > JSP. But how can I clear these fields after
> > > submitting?
> > > Thanks
> > > Rui
> > >
> > > =====
> > > "If a rabbit's foot is so lucky,..... what
> > happened to the rabbit?"
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> > >
> > >
> >
> ==============================================================
> > > =============
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body:
> > > "signoff JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with
> > body: "set
> > > JSP-INTEREST DIGEST".
> > > 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".
> > For digest: mailto [EMAIL PROTECTED] with body:
> > "set JSP-INTEREST DIGEST".
> > 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
>
>
> =====
> "If a rabbit's foot is so lucky,..... what happened to the rabbit?"
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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