Need help in my code
- From: "mory2311" <mory2311@xxxxxxxxx>
- Date: 30 Oct 2006 10:01:52 -0800
Hi all ,
This is my first project I work in , and I need help to solve a problem
..
I have a method to insert data from JSP page ' form1' into database
then return a number ' X ' from database to another JSP page ' form2 '
..
the problem is : each time I refresh ' form2 ' the number ' X '
increase coz the servlet code excuted and invoke the methode to insert
the same data into DB then return the new value of ' X ' although some
of entered data are defined as primary key or unique fields and should
not be entered twice .
what should I do ??
.
- Follow-Ups:
- Re: Need help in my code
- From: polilop
- Re: Need help in my code
- From: Pawel Szulc
- Re: Need help in my code
- From: Wesley Hall
- Re: Need help in my code
- Prev by Date: Re: Undo Function in Java
- Next by Date: Re: Recommend a good programming environment for beginner?
- Previous by thread: Servlet to JSP problem
- Next by thread: Re: Need help in my code
- Index(es):