Hey!

I, and maybe others, am having trouble understanding your difficulty.

If you write a servlet that overrides doGet() that sends back to the browser an
HTML forms page constructed with entry fields, check boxes, radio buttons,
and etc., then when the user makes selections and inputs data, the submitted
form POSTs
the parameters to the servlet .

Then override the doPost() with whatever message that you want to send
back after inserting to the DB.

If I have guessed wrong, please give us more details about your implementation.

What event triggers the doGet()?  A POST will never post itself again with
minimizing.
It may ask you if you want to rePost the data.

Sans adieu,
Danny Rubis

Tom John wrote:

> Hi,
>    I do have a servlet which connects to a database and insert data to the
> database and send results as HTML page, In this servlet I do use doGet
> method ,The servlet works properly, but the problem is when try to see the
> source of the page or if we minimize the page it again try to reconnect,
> because of this
> reason it gives an SQLException : General Error that is trying to re insert
> the same data to the Db, (keep in mind that this is a Client Server Project)
> can anybody let me know how to overcome this problem.
>
> 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

___________________________________________________________________________
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

Reply via email to