if you not already do so: try to execute your sql queries in a jdbc
transcation and commit it before responding to the client. it might
solve your problem.
joern
Tom John wrote:
>
> Hi,
> This problem is there not only in a piece of code but with my entire
> project. For eg a piece of code which writes to the database works with no
> problem ,but by anychance if I press Browser back button(once press
> this the old values still exists)and submit the value it gives the following
> error.
> SQLExeception caught :GeneralError. I think this error comes when we try to
> insert a tuple which already
> exists.
> The other problem is, if we do not press the browser back button it handles
> the above duplicate values
> properly.
>
> Early reply very much appreciated.
>
> TOM
>
> >> :GeneralError
> At 12:43 PM 12/31/99 +0530, you wrote:
> >Could u be little more specific ? Or u can send me the entire code, it would be
> >helpful for me to detect the fault.
> >
> >Moloy
> >
> >Tom John wrote:
> >
> >> Hi,
> >>
> >> In my project (client server/web based project) the client accesses the
> >> remote database and the program works
> >> with no problems but the problem is if by anychance the client pressses the
> >> "BROWSER BACK BUTTON" and then
> >> submits the forms it gives SQL exception error( SQLExeception caught
> >> :GeneralError). Simply what this all about is that once presses the browser
> >> back button it wan't refresh the values of the previous form. Any ideas
> >> or suggestions about this please.
> >>
> >> TOM
> >>
> >> ___________________________________________________________________________
> >> 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
> >
> >
> >--------------------------------------------------------------
> >SREI INTERNATIONAL FINANCE LTD., CALCUTTA, INDIA
> >
> >___________________________________________________________________________
> >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
--
----------------
Joern Turner
inTouch GmbH
Kaiserin-Augusta-Allee 101, 10553 Berlin
Tel: 030 / 34 90 97 23
Fax: 030 / 34 90 97 25
[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