Re: Need help in my code



try using http://struts.apache.org/

"mory2311" <mory2311@xxxxxxxxx> wrote in message
news:1162231312.836692.14600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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 ??



.



Relevant Pages

  • Need help in my code
    ... 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 ... of entered data are defined as primary key or unique fields and should ...
    (comp.lang.java.programmer)
  • Re: Primary Key Unexpectedly Gone from Table
    ... I don't understand how the entered data could violate the index when the PK ... where does the Function CreateIndexesDAO() in your ... there is no longer a Primary Key set. ... I cannot run any data definition code to set the PK on ...
    (microsoft.public.access.tablesdbdesign)
  • Re: can we set a primary key on a form in access database if yes how?
    ... I'm not sure what you're question means, to be honest. ... you have to consider what you do when the user types in a value ... to see if the resulting primary key already exists. ... entered data that won't create a collision, ...
    (microsoft.public.access.forms)