Database just updated sometimes??

Hi,
Please help, I am new at JBuilder and jsp pages and don�t know what is wrong when my database is just updated sometimes but not always. I run my jsp page where I type in a name of a person that I then want to insert in my database. This is just working if I test the Query in JBuilder�s design. But if I try to run the application jsp page that that then shall connect to the database, it says there is something rong with my SQL question.
Here is part of my code:
********My jsp page**************
<html>
<head>
<title>
Jsp1
</title>
</head>
<jsp:useBean id="jsp1BeanId" scope="session" class="myapp1.Jsp1Bean" />
<jsp:setProperty name="jsp1BeanId" property="*" />
<body>
<h1>
Personal Planner<br><hr>
</h1>
<%--The java file that should receive the data typed in in the name field--%>
<FORM ACTION="http://localhost:8080/Jsp1.jsp" form method="get">
<%--Olika f�llt med persondata--%>
Enter following data:
<pre><br> First name: <input type="text" name="firstname" size="20">
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Clear">
<br>
<br><br><br><br><br>Value of Bean property is :<jsp:getProperty name="jsp1BeanId" property="firstname" />
</form>
<% if(request.getParameter("firstname")!= null ) {
String name = request.getParameter("firstname");
DBapplication Db = new DBapplication(name);
%>
<%
%>
</body>
</html>
******My DB connection*************
package myapp1;
import javax.swing.UIManager;
import java.awt.*;
import com.borland.dx.sql.dataset.*;
public class DBapplication {
boolean packFrame = false;
Database database1 = new Database();
QueryDataSet queryDataSet1 = new QueryDataSet();
String firstname = new String("");
/**Construct the application*/
public DBapplication(String name) {
firstname = name;
System.out.println(firstname);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
/**Main method*/
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
catch(Exception e) {
e.printStackTrace();
//new DBapplication( );
private void jbInit() throws Exception {
queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "INSERT INTO Persondata VALUES (\'7730\'," firstname ",\'0730555582\')\n", null, true, Load.ALL));
database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:odbc:mindsn", "xxxxx", "xxxxx", false, "sun.jdbc.odbc.JdbcOdbcDriver"));
*****Bean file****************
package myapp1;
public class Jsp1Bean {
private String firstname = "null";
/**Access firstname property*/
public String getFirstname() {
return firstname;
/**Access sample property*/
public void setFirstname(String newValue) {
if (newValue!=null) {
firstname = newValue;
/Thanks in advance

I am getting data into the firstname field in the jsp page typed in when I run the application. I also get the name of the person typed in to the method jbInit(), but the next to lines that has with the connection to to is not working properly.
queryDataSet1.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(database1, "INSERT INTO Persondata VALUES (\'7731\'," + firstname + ",\'07555563282\')\n", null, true, Load.ALL));
database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:odbc:mindsn", "xxxx", "xxxx", false, "sun.jdbc.odbc.JdbcOdbcDriver"));
Now I do not get any errors, but the database is still not getting any data. Is the format for sending a variabel \'," + firstname + ",\' right???

Similar Messages

  • I just updated my iphone 4 to IOS 7.0.4 and it gets stuck backing up on step 2 of 7 and sometimes says step 2 of 4. I've got 2.09 GB free and ive reset it and still wont back up.

    I just updated my iphone 4 to IOS 7.0.4 and it gets stuck backing up on step 2 of 7 and sometimes says step 2 of 4. I've got 2.09 GB free and ive reset it and still wont back up. It also says my phone has never been backed up to the computer, but ive been doing it for 2 years on it. My Ipad 2 also was getting stuck on step 2.

    Hey there Ashleyehall,
    Thank you for your question. It sounds like iTunes is unable to complete a backup of your iPhone. I found this article for you to help troublehsoot the issue named:
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123
    Symptoms
    iTunes stops responding when backing up or syncing with an iPhone, iPad, or iPod touch.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Just updated from elements 11 to 13. When I try to use Levels in Elements 13. I click on the slider with my bamboo pen and nothing happens for a few seconds, sometimes not at all. This worked fine in Elements 11.

    Just updated from elements 11 to 13. When I try to use Levels in Elements 13. I click on the slider with my bamboo pen and nothing happens for a few seconds, sometimes not at all. This worked fine in Elements 11.

    Never mind my question on the photoshop elements 13 trying to install the camera raw update. It has been taken care of thank goodness!

  • I have updated my firefox version but it keeps on telling me that I do not have the latest version, even though I just updated it.

    On the homepage of firefox it sayd that I do not have the latest version of firefox. So i desidet to update it, but after that it kept on telling me that I do not have the latest version. I am sure that I have the latest version because I just updated it. Is it possible that the update did not work or is just an advertisement firefox shows to everyone? Hopefully you can provide me an answer, which would be helpful.
    Computer's operating system: vista (I do not know whether this is relevant)

    The machine could be repaired by a company that does circuit board re-soldering, since it is possible a heat-flex solder break on the main board may have caused either the processor or graphics chips to lose connection and that could manifest itself in a few somewhat documented ways.
    There is an on-board RAM chip that may also have something to do with a kernel panic, if it no longer is functioning correctly; that is the non-removable one soldered on the board you never usually worry about.
    Companies such as powerbookmedic, wegenermedia, and others can take in portable macs of vintage or newer (contact them for details on what they do, and how they accept work orders) for repair and can fix most anything; and have a parts inventory. Modern repair workstations allow the equipped service company to fix complex issues and they do troubleshooting. Sometimes the cost is less than a replacement logic board.
    The links above may help isolate the general cause of a kernel panic. There are other articles in Support database including a deeper look into them.
    •Technical Note TN2063: Understanding & Debugging Kernel Panics
    https://developer.apple.com/library/mac/technotes/tn2063/_index.html
    •Resolving Kernel Panics - The X Lab:
    http://www.thexlab.com/faqs/kernelpanics.html
    •Troubleshooting Kernel Panics:
    http://www.thexlab.com/faqs/kernelpanics.html#Anchor-Troubleshooting-49575
    Usually the issue is caused by hardware, especially if there is an indication of machine failure in the crash log or other screen image text.
    A working last model MacBook (mid-2010) would be a better 'first mac' to have.
    Hopefully you can sort it out.
    If not, there likely are fair parts in it.
    Good luck & happy computing!

  • Database table update issue

    Hello experts, Need your Help...
    I am trying to update database table using Update command. And I am doing COMMIT WORK AND WAIT. after the successful update.
    But my code sometimes does not work and the table is not updated.
    Sometimes the code works and sometimes not.. for the same data.
    Can anybody think of any possible reason?
    Thanks in advance,
    --Kumail

    Hello Guys,
    Here is the code, here we have all the keys... as it updates correctly sometimes. But doesnt update sometimes... for same data...... I have added COMMITT and WAIT statements to solve this problem.... but no luck....
            UPDATE zfxx_bsr_data
                SET zfxxstatus_glr  = zfxx_bsr_data-zfxxstatus_glr
                zfxxstatus_issue = zfxx_bsr_data-zfxxstatus_issue
                    zfxxerdat_glr   = sy-datum
                    zfxxuser_glr    = sy-uname
                    zfxxremark_glr  = zfxx_bsr_data-zfxxremark_glr
                    zfxxertime_glr  = sy-uzeit
                  doc_ind         = w_doc_ind                  
                  zfxx_attach_acc = w_zfxx_att_acc      
              WHERE bukrs        EQ t001-bukrs
              AND   saknr        EQ zfxx_bsr_data-saknr
              AND   zfxxperiod   EQ zfxx_bsr_data-zfxxperiod
              AND   zfxxfield    EQ c_ba
              AND   zfxxfieldval EQ tgsb-gsber.
            IF sy-subrc EQ 0.
              WAIT UP TO 3 SECONDS.
              COMMIT WORK.
              WAIT UP TO 3 SECONDS.
            ENDIF.

  • I just updated to Adobe Reader 11.0.07 on my Mac 10.6.8 and now the video files don't work.  How do I uninstall the update and return to the previous version?

    I just updated to Adobe Reader 11.0.07 on my Mac OS version 10.6.8 and now the video files don't work.  How do I uninstall the update and return to the previous version?

    I received a notice from Chris Campbell at Adobe that stated : "....we are aware that Macs created between 2006 and 2008 are currently running into problems using the latest release of Flash Player (version 13)."  My question is will the update of Adobe Reader 11.0.07 cause this problem with Flash Player 13 on my Mac?  Sometimes when I try to view streaming video I get sound but no video.
    >

  • I just updated to 8.1 and my library is gone, but still on my iPod touch

    I just updated my iTunes to 8.1. I restarted my computer, and when iTunes started again, my library was gone. i was able to get my apps back by using the transfer purchases option, but i have no idea how to get everything else back. please help as soon as possible. Thanks in advance.

    Welcome to AD!
    Maybe the itunes database file just didn't get updated properly.
    Have you seen this article on looking for an ITL file in the Previous iTunes Library folder?
    There should be a file dated from today when you upgraded itunes.
    iTunes Library 2009-03-28.itl
    http://support.apple.com/kb/TS1967

  • I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    Restart your Mac and immediately hold down the Shift key when you hear the startup chime to boot into Safe Mode. Keep holding the Shift key until you see a progress bar towards the bottom of the screen. You can let go of the Shift key at that point.
    OS X asks you to log in (you will get this screen on a Safe Mode boot even if your Mac is set to automatically log in). Let the Mac finish booting to the desktop and then restart normally. This will clear Font Book's database and the cache files of the user account you logged into in Safe Mode.
    Next, close all running applications. From an administrator account, open the Terminal app and enter the following command. You can also copy/paste it from here into the Terminal window:
    sudo atsutil databases -remove
    Terminal will then ask for your admin password. As you type, it will not show anything, so be sure to enter it correctly.
    This removes all font cache files. Both for the system and the current user font cache files. After running the command, close Terminal and immediately restart your Mac.

  • I just updated iTunes, and now when I connect my phone iTunes crashes.

    I just updated iTunes to the latest version, and then when I connected my iPhone I received an error message saying iTunes had encountered a problem and DEP closed it. I tried uninstalling and reinstalling and nothing has helped so far. I am in the process of uninstalling everything and installing an older version but I searched on google and found others have had this exact problem. Is there a solution to this problem yet?? 

    Hi,
    same problem was here to with Windows 7 home premium 64-bit. I Had also problems with my multimedia-keys on the razer tarantula. They won't be recognized.
    After having to much trouble with 10.4 is was using my systembackup to restore to 10.3. I must do this because after reinstalling 10.3 iTunes told me that the database is incompatibe.
    No everything is working as normal. Hoping Apple will fix these things and also the new Safara 5.1 that will destroy the iTunes Store in 10.4 (Only blank white screen).
    Manfred

  • HT201394 I just updated my iPhone 4s to iso 8.2  How do I create a pass code to open my phone without using my password every time?

    I just updated my iPhone 4s to iso 8.2  How do I create a pass code to open my phone without using my pass word every time?

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • HT4972 Hello, I just updated the iphone with 5.1 ios...but now i'm getting "No Service" message for AirTel...Please help

    Hello, I just updated the iphone with 5.1 ios...but now i'm getting "No Service" message for AirTel...Please help

    Hi, Yes, I bought new sim (64k) from Airtel gallery...and now i'm on version 5.1.1...Sometimes it works but if i turn on the 3g then the network went down and showing me a "NO SERVICE" error...i have to wait till the network come...it's a headche..I think i have to go again in gallery and want to ask for new sim with 128k...Any suggestions on this plz?

  • Just updated to Lightroom CC but I still have Lightroom 5 on my laptop. I thought that CC would replace 5? Why do I need both taking up space on my laptop?

    Just updated to Lightroom CC but I still see Lightroom 5 on my laptop? I thought CC would replace 5?

    Newer versions of Adobe software rarely overwrite older versions. They usually install side by side.
    Sometimes plugins for older versions don't work on newer versions and people often want to be able to choose when they uninstall the older version.
    If you're not using Lightroom 5, feel free to uninstall it.

  • HT4623 just updated my iPhone 4s to ios6, now my phone won't turn back on. The apple logo comes on and sits then shuts off. I have held down the home button and on/off switch several times to reset, but same problem persists.

    just updated my iPhone 4s to ios6, now my phone won't turn back on. The apple logo comes on and sits then shuts off. Then comes back on and just sits.I have held down the home button and on/off switch several times to reset, but same problem persists.

    Place iPhone on Wall Charger for at least 10 minutes. Then keep on charger and Reset, hold both home and power buttons until the iPhone begins to start, this can take about 20 seconds of holding both buttons while on charger. If still problem, open iTunes 10.7 on computer, connect iPhone to computer with USB Cable, hold both home and power buttons for about 20 seconds until iTunes recognizes iPhone in Recovery Mode, then click Restore button of iTunes. If still problem, try DFU Mode Restore, here are the steps. Open iTunes on computer. Connect iPhone to computer with USB cable. Hold both Home and Power buttons, after exactly 10 seconds release the Power Button, keep holding the Home button until iTunes recognizes iPhone in Recovery Mode, usually about 20 seconds time. If the iPhone screen is black, blank this is DFU Mode. Click the Restore button of iTunes. DFU Mode can be difficult to enter sometimes, just keep trying. DFU Mode is a black, blank screen with iTunes saying Recovery Mode. If still problem and there is Warranty or AppleCare make Genius reservation and take to Apple for resolution.

  • I just update my iphone 4 to IOS 5 and in the lock screen I do not see the icon to access my camera, how can I set it up?

    I cant see the camera access on the lock screen , I just updated my iphone 4 to IOS 5, anyone nows why??

    I've repeatedly had problems with my Yahoo! account on iOS 4 too, and I've had to delete it, then set it up again. It kept asking for my password, though the phone had it memorized, and when I entered it, I'd get the same error message about no password being set. Could be the Mail app has a problem with Yahoo!, because on my MacBook Pro too, the Yahoo! account sometimes gets locked out.
    Oh, and thanks for the tip about the lock screen: I've just posted a new discussion about this. Should have searched the forum first, I know...

  • Just Updated iPhone 3GS to iOS5, Can't receive any incoming calls at all

    Hi, I just updated my phone to iOS5 and now, I'm having these troubles.
    - Can't receive any incoming calls at all
    - The incoming calls directly goes to voice mail greeting
    - No incoming rings & no missed calls alerts
    - Also noticed the incoming text with 4 to 5 hours delays
    - Sometimes 3G network get lost
    The reception (status bar) is good level, can make outgoing calls okay and can send text okay.
    I did try reset the network setting and it seems working a few hours then went back to troubles (mentioned above).
    I've done 3 or 4 times reset but none have been resolved yet.
    Anyone having a same issues?
    I have
    iPhone 3GS with iOS5
    Network with O2 UK
    Thanks,

    After reset "All network settings" a several times, it seems working but few hours later it 's been gone back to troubles again.
    Is this related to iOS5 or O2?
    I've contacted the network carrier several times but no-one yet get back to me.
    Any ideas, please helps.
    Re: iOS5 updated and all incoming calls going straight to voicemail 

Maybe you are looking for