HELP!!! Can't use sql:update in Netbeans Visual Web JSP

I use Netbeans Visual Web in my project. I use Java DB database and Sun Java System Application Server 9.
When i run my project, there is an error "The server encountered an internal error () that prevented it from fulfilling this request."
Here is the codes:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:sql="http://java.sun.com/jsp/jstl/sql" >
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Page1.page1}" id="page1">
<sql:update var="indata" dataSource="datasource">
INSERT INTO "NBUSER"."user" ("Username") VALUES('jacky')
</sql:update>
<ui:html binding="#{Page1.html1}" id="html1">
<ui:head binding="#{Page1.head1}" id="head1">
<ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
</ui:head>
<ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{Page1.form1}" id="form1"/>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
I can't store the data "jacky" into "Username" column in "user" table in database. Can anyone please let me know where is my mistake. Thanks.

Maybe that SQL statement isn't valid. All those quotes look weird to me, but don't take that as meaning they are wrong. You should look in your server's logs to find out the actual error that occurred, rather than trying to guess what's wrong.

Similar Messages

  • Help Required -- Can we use SQL Query to READ data from SAP MDM Tables

    Hi All,
    Please help.........
    Can we use SQL Query to READ(No Creation/Updation/Deletion  just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
    Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
    Thanks in Advance
    Regards

    All the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
    Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
    But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.
    BR,
    Alok

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft website I've clicked the options which mean I shouldn't need the CD (which wasn't supplied with the laptop), but poartway through updating the service pack I get a request for the Office 2000 Professional CD.
    Any suggestions?

    Hi
    Did you mean a Office or One Note?
    As far as I know the One Note is a part of the Recovering Image and the CD is not delivered with the unit. Furthermore the Toshiba units are not delivered with the Office 2000 software.
    Nevertheless, did you check the update function in the Help i.e. in Word?
    There you will find a options called Check for Updates
    http://office.microsoft.com/en-us/officeupdate/default.aspx
    Bye

  • Can we use SQL Server 2012 Web Edition as a witness server in mirroring?

    Hi All,
    Can we use SQL Server 2012 Web Edition as a witness server in mirroring?
    Grateful to your time and support. Regards, Shiva

    Hi All,
    Can we use SQL Server 2012 Web Edition as a witness server in mirroring?
    Grateful to your time and support. Regards, Shiva
    As Per BOL
    We strongly recommend that the witness reside on a separate computer from the partners. Database mirroring partners are supported only by SQL Server 2005 Standard and later versions and by SQL Server 2005 Enterprise Edition and later versions.
    Witnesses, in contrast, are also supported by SQL Server 2005 Workgroup and later versions and by SQL Server 2005 Express Edition and later versions. Except during an upgrade from an earlier version of SQL Server, the server instances in a
    mirroring session must all be running the same version of SQL Server. For example, a SQL Server 2005 witness is supported when you are upgrading from a SQL Server 2005 mirroring configuration but cannot be added to an existing or new SQL Server 2008 or later
    mirroring configuration.
    A witness can run on any reliable computer system that supports any of these editions of SQL Server. However, we recommend that every server instance that is used as a witness correspond to the minimum configuration that is required for the SQL Server Standard
    version that you are running. For more information about these requirements
    http://technet.microsoft.com/en-us/library/ms175191.aspx#SwHwRecommendations
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Can I use SQL developer for a Sybase IQ migration to Oracle?

    Hello,
    Can I use SQL developer for a Sybase IQ migration to Oracle?
    Currently in the supported list appears only Sybase Adaptive Server 12 and 15.
    Thanks,
    Florin D.

    Sorry, we don't support IQ migrations at this time.

  • What software can be use to update iphone 3g 4.2.1 to iOs 4.4.4 without any error occuring...???

    what software can be use to update iphone 3g 4.2.1 to iOs 4.4.4 without any error occuring...???

    Ah...there is no iOS 4.4.4, & iOS 4.2.1 is the end of the line for your phone. There are no further updates available.

  • Using Suri asking any localised question in the UK, it responds with 'cannot help' can only use US locations etc. and in US English. Have I missed something or set something up incorrectly? I also thought it would interface with your Facebook but it just

    Using Suri asking any localised question in the UK, it responds with 'cannot help' can only use US locations etc. and in US English. Have I missed something or set something up incorrectly? I also thought it would interface with your Facebook but it just comes back with a 'I can't help you with Facebook' message

    Yeah, Siri - a headline feature on the iPhone 4s page - is beta at the mo.
    But then anyone who's used Macs for a few years will know that most new software is pretty much still in beta when it's released anyway. Only Apple could get away with it and retain customers

  • Can I use SQL to move a device record?

    It appears all/most of the powershell scripts out there to move a device record into a collection utilize WMI.
    Is it possible to use SQL to add a device record into a collection.
    I also mean to execute this via C#.
    Any assistance with this wether direct or indirect would be very much appreciated.

    It appears all/most of the powershell scripts out there to move a device record into a collection utilize WMI.
    Is it possible to use SQL to add a device record into a collection.
    I also mean to execute this via C#.
    Any assistance with this wether direct or indirect would be very much appreciated.
    No, you can't use SQL to directly add a record to CM12. (Short of dropping to DOS and executing a batch,powershell, etc.)
    Have you look at the SDK, it should allow you to do what you want in C#.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • How can I use SQL to check if the receipt is accounted?

    Dear all:
    How can I use SQL to check if the AR receipt is accounted ? Because there is so many receipts to check, I cannot open it to see the detail one by one.
    My environment is :11.5.9
    database : Oracle 9.2.0.8

    Duplicate post.
    How can I use SQL to check if the receipt is accounted?
    Re: How can I use SQL to check if the receipt is accounted?

  • Can I use Interop.Excel in Office 365 web app development

    Hi,
    I want to develop a app for office 365 web. I know javascript api is available for that purpose but the problem is, it is limited to some functionality only. I want to manipulate excel sheets and ranges so will Interop assembly work ? 
    Thanks

    Hi Maulik,
    >>Can I use Interop.Excel in Office 365 web app development <<
    No, the Office PIAs is used to interact with Office Client which developet with COM technology. The Office online is different with Office client, it is an service and exposed with HTML.
    >>I know javascript api is available for that purpose but the problem is, it is limited to some functionality only.<<
    Did javascript mean JavaScript API for Office? If you have any feedback about apps for Office, you can submit it from link below:
    Customer Feedback for the Office Developer Platform
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • How can i use isight camera to broadcast to web with Mac OS 10.4?

    I am using an iBook G4 running OS 10.4 as a printer server.  I have to do this to be able to print on my HP DeskJet 882c printer from computers running OS 10.6 and above (although I have not been able to get it to work with 10.8).
    I can connect an iSight camera to the iBook via FireWire.  Can I set that up to broadcast a video feed to a web site so I can visually monitor the area near the laptop and printer?

    jrmnewtonma wrote: How can i use isight camera to broadcast to web with Mac OS 10.4?
    You could use compatible older versions of QuickTime professional extensions for your Mac OS X version.
    This professional quality software is very powerful, and it will certainly stream any video you need.  However, it is not simple to use, so be prepared to do some research and study to get it configured and working.
    To use your iBook with its OS X 10.4, you will need QuickTime Broadcaster 1.5.3 
    and Darwin Streaming Server (v5.5.5) (if you need streaming server functions.) 
    Although I have never used it, QuickTime Streaming Server 4.1.1 might be a useable substitute for Darwin.
    Message was edited by: EZ Jim
    Mac OSX 10.8.3

  • How can we  use java variable in javascript code on JSP page?

    How can we use java variable in javascript code on JSP page?
    Pls help

    Think about it:
    JSP/Java is executed on the Server and produces HTML+JavaScript.
    Then that HTML+JavaScript is transfered to the client. The client now interpretes the HTML+JavaScript.
    Obviously there's no way to access a Java variable directly from JavaScript.
    What you can do, however, is write out some JavaScript that creates a JavaScript variable containing the value of your Java variable.

  • Can I use my IPad to monitor 2 web cams in my children's rooms? How, and what do I need?

    How can I use my IPad to monitor 2 web cams wirelessly in my children's rooms?

    Search for webcam apps in the app store.  Most work only with specific cameras.  Check the manufacturer of yours and see if they offer an iOS app.

  • NetBeans Visual Web + instances of users

    hi i have some problem with menages of users, maybe...;)
    so i'm creating new project in netbeans > visual web application,
    next 2 new pages,
    on first i have 1 text field (textField1) and 1 button (button1) and some action:
    public String button1_action() {
            // TODO: Process the action. Return value is a navigation
            // case name where null will return to the same page.
            String temp="";
            temp=textField1.getText().toString();
            getRequestBean1().setRValue(temp);
            getSessionBean1().setSValue(temp);
            getApplicationBean1().setAValue(temp);
            return "ok";
        }after this, we are going to next page and there, we have 1 buttom (button2)
    and 3 static texts (staticText1,staticText2,staticText3) and:
    public String button2_action() {
            // TODO: Process the action. Return value is a navigation
            // case name where null will return to the same page.
           staticText1.setText(" req: "+getRequestBean1().getRValue());
           staticText2.setText(" ses: "+getSessionBean1().getSValue());
           staticText3.setText(" app: "+getApplicationBean1().getAValue())
            return null;
    /code]
    run project> on first page im giving lets say "first person" >click button1
    on second page click button2 and i have results on staticText1..3:
    req: null
    ses: first person
    app: first person
    im opening another browser going to my project web and giving "next person">click button1 on second page click button2 and results:
    req: null
    ses: next person
    app: next person
    backing to first browser click button2 and i have the same results like in the secodn browser (but i dont wonna;))
    req: null
    ses: next person
    app: next person
    how to menage diferent instanses of application? some FacesContext? please help me, some online tutorial? thx:)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    From http://blogs.sun.com/roumen/entry/questions_at_the_sun_booth:
    Q: Does it mean that Java Studio Creator will go away?
    A: Future roadmap of Java Studio Creator is still being discussed, it is possible that it will continue to exist. By using NetBeans + Visual Web Pack you can make sure to have access to the latest and greatest features.

Maybe you are looking for

  • CS5 Ext and Bridge 6.3 are now corrupting my Canon cr2 files. Any suggestions?

    Morning All, My machine has just started corrupting some of my cr2 files. I bring them back from the card as well as from my backups and all of a sudden all of the versions are corrupt. I can open them in IrfanView no problem. I can open them in DPP

  • Sun Server Is working Slow

    Hi, Is There Any one Using Sun Server For their Web Apps.Please guide me in the following Issue: I am using J2EE 1.4 Server. I have More Than 250 users Accessing the server at the same time So I made the thread pool size as 400 and also the jdbc conn

  • GO URL in 11g

    Hi I was implementing go url code in obiee11g, as implement in 10g. Formula wise, it is correct. But it is throwing the following error, when i ran the dashboard. "HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has

  • UISearchBar with a mask on the content view?

    Hi, is it possible to make a mask placed on top of the content view when using the UISearchBar, like the BG mask of the UIAlertView? coz I wanna block the interactions from the content view while it is in the search mode. Thx Cody

  • Why did my Filmstrip function in CS6 Bridge stop working?

    I've been using Photoshop CS6  Bridge for about a year now.  Just recently the Filmstrip function stopped working.  I click on it and nothing happens.  Everything else works - Essentials, Metadata, and Output. It's been this way for a couple of weeks