Click here to Skip to main content
15,900,461 members
Home / Discussions / Java
   

Java

 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Arman S.7-Jan-11 8:35
Arman S.7-Jan-11 8:35 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Richard MacCutchan7-Jan-11 8:58
mveRichard MacCutchan7-Jan-11 8:58 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Arman S.7-Jan-11 9:23
Arman S.7-Jan-11 9:23 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
jschell8-Jan-11 8:59
jschell8-Jan-11 8:59 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Richard MacCutchan8-Jan-11 21:49
mveRichard MacCutchan8-Jan-11 21:49 
GeneralRe: Comparing values in the table with the value the user keyed in [modified] Pin
pancakeleh9-Jan-11 16:59
pancakeleh9-Jan-11 16:59 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Richard MacCutchan9-Jan-11 23:00
mveRichard MacCutchan9-Jan-11 23:00 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
pancakeleh10-Jan-11 19:43
pancakeleh10-Jan-11 19:43 
i very much want to spend time studying after all is for my own good, however i am rushing out this. I have made some changes to the code again as shown:

   String incidentString = (String) getIncidentidtxt().getValue();
 
        String incidentNameName = (String)getIncidentenametxt().getValue();

try{
        
         Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();

        Connection con = DriverManager.getConnection(dbURL);

        stmt = con.createStatement();

        if(incidenteidtxt != null){
        rs = stmt.executeQuery("Select INCIDENTID from INCIDENTDATA");
        
        while(rs.next()){
  
          id = rs.getString("INCIDENTID");           
          String idtxt = id.toString();

            if(incidentString != idtxt){

                getSessionBean1().updateIncident(incidentString, incidentNameName);
      
            }

            else{

          incidentidtxt.setRequiredMessage("Id valid, enter new Id.");
               
        }
            }

        }
        }

           catch (Exception ex) {

        log("ErrorDescription", ex);
              error(ex.getMessage());
    }


however when i run the program, instead of adding one value when the add button is being clicked, it will add 20 over values. why is this so? hope to hear from you all soon.
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Richard MacCutchan10-Jan-11 23:21
mveRichard MacCutchan10-Jan-11 23:21 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
pancakeleh12-Jan-11 21:48
pancakeleh12-Jan-11 21:48 
GeneralRe: Comparing values in the table with the value the user keyed in Pin
Richard MacCutchan12-Jan-11 22:06
mveRichard MacCutchan12-Jan-11 22:06 
QuestionNeed urgent help in assignment of JAVA, any idea suggestion plz Pin
aesthetic.crazy5-Jan-11 12:13
aesthetic.crazy5-Jan-11 12:13 
AnswerRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
Richard MacCutchan5-Jan-11 21:41
mveRichard MacCutchan5-Jan-11 21:41 
AnswerRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
David Skelly5-Jan-11 22:19
David Skelly5-Jan-11 22:19 
GeneralRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
aesthetic.crazy5-Jan-11 23:52
aesthetic.crazy5-Jan-11 23:52 
GeneralRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
David Skelly6-Jan-11 3:26
David Skelly6-Jan-11 3:26 
GeneralRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
aesthetic.crazy6-Jan-11 10:38
aesthetic.crazy6-Jan-11 10:38 
AnswerRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
jschell6-Jan-11 9:25
jschell6-Jan-11 9:25 
GeneralRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
aesthetic.crazy6-Jan-11 10:39
aesthetic.crazy6-Jan-11 10:39 
GeneralRe: Need urgent help in assignment of JAVA, any idea suggestion plz Pin
jschell7-Jan-11 13:49
jschell7-Jan-11 13:49 
QuestionCreating an ArrayBinaryTree Pin
nee-kow5-Jan-11 6:48
nee-kow5-Jan-11 6:48 
AnswerRe: Creating an ArrayBinaryTree Pin
David Skelly5-Jan-11 22:16
David Skelly5-Jan-11 22:16 
GeneralRe: Creating an ArrayBinaryTree Pin
nee-kow5-Jan-11 22:44
nee-kow5-Jan-11 22:44 
GeneralRe: Creating an ArrayBinaryTree Pin
David Skelly6-Jan-11 3:31
David Skelly6-Jan-11 3:31 
QuestionI need help. Pin
nee-kow5-Jan-11 6:00
nee-kow5-Jan-11 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.