JSP doesn't reflect database changes

I have a JSP that is supposed to access a database, retrieve a list of goals, and display them. (Yes, I've recently been informed that this violates the MVC model, but I taught myself and I'm on a deadline, so please try to overlook that for the moment.) At the bottom of this page, there is a button that the user can press to add a goal to the list. This leads to a second JSP that accepts information about the goal. When this JSP is submitted, it calls a servlet that adds the goal, then returns to the first JSP (via PostMethod in Jakarta Commons) which should show all previous goals and the newly added goal. But it doesn't.
I know that's a lot to follow, so let me try to diagram it:
JSP #1 (shows goals) -> (select button to add goal) - >JSP #2 (accepts information on new goal to be added) -> (submit new goal) -> Servlet (adds goal to database) -> (return to JSP #1 via Jakarta Commons PostMethod; new goal should show with previous goals, but does not)
I first thought it might be a page caching issue, but I've used Firefox's "Clear Private Data" function at every step of the process, and I get the same results. When I open the database, the new goal shows up, but the JSP does not display it. I've had JSP #1 display the query it sends to the database; I copied it and ran it against the database, and the new goal was returned with the previous ones. Anyone have a suggestion as to what might be the issue?

OK. I spent all day moving the business logic out of the JSP. The new progression goes like this:
Servlet #1 (loads goals; passes them to JSP #1 via request attributes) -> JSP #1 (displays goals; works fine on first access) -> (click button to add goal) -> JSP #2 (accepts new goal data) -> Servlet #2 (adds goal to database) -> Servlet #1 (loads goals; passes them to JSP #1) -> JSP #1 (displays goal; just-added goal does not display)
Any further ideas? I can post code, but I prefer to let folks tell me what they want to see before I dump loads of code into a forum like this.

Similar Messages

  • Change to RSViewerPage.aspx doesn't reflect the change to the Sharepoint

    I am trying to update RSViewer.aspx file under …15/TEMPLATE/LAYOUTS/ReportServer. It seems like the changes I made isn’t reflected on the sharepoint. Please let me know if you can give any suggestion to make this work.
    Note: I have made same changes on Test sharepoint and everything is fine, just Live version doesn’t accept the changes.
    Many Thanks.

    Hi,
    The RSViewerPage.aspx is a Out the boxed application page in the _Layouts folder, Modifying the files that are installed by SharePoint is not supported. Because when microsoft decides to change this page in a future release all your changes are gone.
    What you can do is create your own application page.
    Create a copy of the Layouts folder.
    Custom the RSViewerPage.aspx and add your own branding.
    For the Site Collections, Point the IIS Virtual Directory to the newly copied layouts folder.
    For detailed information, refer to the following KB:
    https://support.microsoft.com/en-us/kb/944105?wa=wsignin1.0
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to reflect db changes - Verify Database doesn't seem to work

    I have changed a database (MS SQL Server) column from varchar 255 to varchar 1000, but the designer doesn't pick up the change.
    I read that db changes can be picked up by using 'Verify Database' feature. It doesn't seem to work for us though. Is there any configuration to turn on for the feature to work properly or any work-around to refresh the database changes?
    We are making the database connection using JDBC (JNDI) option since the report is being used in a Java web application.
    Any comments or insights will be very much appreciated!

    Hi Wallie,
    Thank you very much for your reply! Here are the answers to your questions.
    Are you able to create a new report off the modified database?
    ==> Yes.
    Do new reports see the changes made to the database?
    ==> No.
    Are the reports connecting directly to the database table, or is it a stored procedure, business view, universe being used?
    ==> Through a business view.
    By the way, after trying so many things, I was able to figure out the reason. Since the report is using a view, not directly the table, the view itself had to be recompiled to reflect the table changes so that the view could pass the changes to the report. It was a very good thing to know. Your last question could have been a very helpful insight for this issue! Thank you so much again!

  • Changes in jsp page not reflecting

    Hi,
    I have a requirement where I have to customize the self registration page in OIM, i.e.
    when a user enters uid, it should be checked for its availablity, that is if the user id is already present in OIM then we may suggest him a set a user ids from which he can select.
    For this, I am planning to have a button "Check UID availability" next to uid text field and then on clicking that button we may proceed with our functionality.
    To achieve the very first step, i.e. creating the button, i edited /tiles/tjspSelfRegistrationTiles.jsp and then created and replaced the old webapp.war file with the new one and then run patch_jboss.cmd file which builds the file successfully.
    But, the problem I am facing is that any changes made to this jsp are not being reflected.
    Any pointers to reflect the changes made in jsp would be helpful.

    Well, thats a strange case with JBoss. I never find these JSP's on the deploy directory. The approach which I follow in such cases is as follows:
    1) Take a back-up copy of XellerateFull.ear file from <OIM_HOME>\xellerate directory.
    2) Extract the contents fo this file to any temporary directory. This will contain a war file xlWebApp.war
    3) Extract the content of this file as well.
    4) Now you will be able to see all the JSP folders and struts xml etc.
    5) Update the required JSP.
    6) Bundle the xlWebApp.war file again.
    7) Bundle the XellerateFull.ear file again.
    8) Now since you have a complete ear file. Directly copy this to JBoss deploy directory. Overwrite the existing file:
    <JBossHome>\server\default\deploy\
    9) Restart the server.
    Now all the files would be visible in the directory location as mentioned by you.
    Thanks
    Sunny

  • JSP dosn't reflect changes.

    Hello.
    I had to change the system date of my machine to provoke certain condition to trigger ( ie. send an e-mail when the instance is about to expire )
    The problem I'm facing right now is, no matter what I do, the new changes in my custom jsp are not reflected.
    If I delete the jsp, the correct 404 error is presented, but if I make a change on the jsp ( like deleting all the content ) the old version is shown.
    It seems to me the tool validates it has a newer version and discard my changes ( ie jul 29 changes are newer than today's jul 21 )
    How do I clear the precompiled jsp so it take my changes. I have tried clean up the project. I have performed "touch" on all the files inside the project.
    Is there something I can delete ( like project/system/xyz? or project/build ) or anything else? This problem have consumed about 8 hrs by now.
    Thank you.
    I'm using albpm studio 6.0.4

    If this is a problem you are facing in studio environment then possibly you are making changes to <bpmProjectFolder>\webRoot\customJSP. Your changes will be reflected if you republish the project. When you publish all your custom pages are copied to <studioInstallationFolder>\studio\webapps\portal\webRoot\customJSP. If you want to test out changes without publishing everytime then you should change directly in this location.
    Hope this helps!
    - MK

  • Parsing in Weblogic/jsp doesn't work; application-mode (command-line) works

    Hello-
    Parsing my XML file in Weblogic/jsp doesn't work, whereas it works
    in application-mode... (albeit on two different machines)
    Here are the parameters:
    server1:
    weblogic 6.0
    win2k server
    jre1.3
    my personal machine:
    ***no weblogic***
    win2k server
    jre1.3
    When I run my code as an application (command-line style) on my machine,
    parsing in my xml file works fine, and I can do a root.toString() and it
    dumps out the entire xml file, as desired.
    However, running my code inside weblogic (on server1) in JSP, parsing in
    my file and doing a root.toString() results in the following: [dmui: null]
    (where dmui is my root)
    (even though i'm running it on two different machines, i'm positive its the
    same code (the servers share a mapped drive)...
    So, I think its probably because I'm using a different parser, as
    specified by weblogic? There are no exceptions being thrown. Here's my
    (abbreviated) code, which is called either command line style or in a JSP:
    // Imports
    import org.w3c.dom.*;
    import org.w3c.dom.Document;
    import javax.xml.parsers.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    DocumentBuilderFactory docBuilderFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    mDocument = docBuilder.parse (inFile);
    myRoot.toString()
    -END
    Doing a System.getProperty("javax.xml.parsers.DocumentBuilderFactory")
    results in:
    server1 (weblogic/jsp):
    "weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    my machine (application-mode):
    null
    Does anyone have any ideas about how to get this work? Do I try to set it
    up so that they both use the same parser? Do I change the Weblogic parser?
    If so, to what? And how?
    Am I even close?
    Any help would be appreciated..
    Thanks, Clint
    "[email protected]" <[email protected]> wrote in message
    news:[email protected]...
    No problem, glad you got it worked out :)
    ~Ryan U.
    Jennifer wrote in message <[email protected]>...
    I completely missed setting the property(:-o), foolish mistake. That wasit. Thanks.
    "j.upton" <[email protected]> wrote:
    Jennifer,
    Personally I would get rid of import com.sun.xml.parser.* and use xerces
    which comes with WLS 6.0 now, unless like I said earlier you have a need
    to
    use the sun parser :) Try something like this with your code --I've put
    things to watch for as comments in the code.
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.w3c.dom.*;
    import java.io.FileInputStream;
    public class BasicDOM {
    public BasicDOM (String xmlFile) {
    try{
    FileInputStream inStream;
    Document document;
    /*You must specify a parser for jaxp. You can in a simple view
    think
    of this as being analogous to a driver used by JDBC or JNDI. If you are
    using this in the context of a servlet or JSP and have set an XML
    registry
    with the console this happens automatically. You can also invoke it in
    the
    context of an application on the command line using the -D switch. */
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
    >>>
    "weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    // create a document factory
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    // specify validating or non-validating parser
    dbf.setValidating(true);
    // obtain a factory
    DocumentBuilder db = dbf.newDocumentBuilder();
    // create a document from the factory
    inStream = new FileInputStream(xmlFile);
    document = db.parse(inStream);
    }//try
    catch (Exception e)
    System.out.println("Unexpected exception reading document!"
    +e);
    System.exit (0);
    }//catch
    }//BasicDom
    // Main Method
    public static void main (String[] args) {
    if (args.length < 1)
    System.exit(1); file://or you can be more verbose
    new BasicDOM(args[0]);
    }//class
    =============================================
    That will give you a basic DOM you can manipulate and parse it fromthere.
    BTW this code
    compiled and ran on WLS 6.0 under Windows 2000.
    Let me know if this helped or you still are having trouble.
    ~Ryan U.
    "Jennifer" <[email protected]> wrote in message
    news:[email protected]...
    Actually I included com.sun.xml.parser.* as one last febble attempt toget
    it working.
    And as for source code, I included the code. If I just put that oneline
    of code
    in, including the imports, it fails giving me an error listed above inthe
    subject
    line. Here is the code again:
    package examples.xml.http;
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.*;
    import java.util.*;
    import java.net.*;
    import org.xml.sax.*;
    import java.io.*;
    public class BasicDOM {
    static Document document;
    public BasicDOM (String xmlFile) {
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    } catch (FactoryConfigurationError e){
    System.err.println(e.getException());
    e.printStackTrace();
    // Main Method
    public static void main (String[] args) {
    BasicDOM basicDOM = new BasicDOM (args[0]);

    Hi, Rob
    Does it work in WL9.2?
    It seems I do it exactly as the explained at http://edocs.bea.com/wls/docs81/programming/classloading.html - and it fails :o(.
    I try to run my app.ear with WL9.2 There are 2 components in it: webapp and mdb. The webapp/WEB-INF contains weblogic.xml:
    <weblogic-web-app>
    <container-descriptor>     
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    </weblogic-web-app>
    Mdb is expected to run in the same mode, i.e. to prefer the webapp/WEB-INF/*.jar over the parent Weblogic classloader. To do so I add the weblogic-application.xml to the app.ear!/META-INF:
    <weblogic-application>
    <classloader-structure>
    <module-ref>
    <!-- reminder: this webapp contains
    prefer-web-inf-classes -->
    <module-uri>webapp</module-uri>
    </module-ref>
    <classloader-structure>
    <module-ref>
    <module-uri>mdb.jar</module-uri>
    </module-ref>
    </classloader-structure>
    </classloader-structure>
    </weblogic-application>
    Now, when classloader-structure specified, both webabb and mdb prefer the weblogic root loader as if prefer-web-inf-classes not defined at all.

  • HRMD_A idocs sent and processed, but Org chart doesn't reflect it sometimes

    From our HR box, we send HRMD_A idocs to our FI box - We have an intermittent issue where we have a position change & the idoc gets created & sent over.
    On the inbound side, the idoc gets posted successfully with Status 53. However, this EE does not appear in the org chart as it does on the HR side.
    We have these IDocs set up to process immediately, so it passes to the FI port and is processed all within a few seconds.
    We come across this issue once about every 3-4 weeks and I can't seem to get anywhere trying to resolve it.
    any ideas?

    There are two main annoying problems with Flash Builder and swc's:
    1.  Flash Builder doesn't reflect changes made to swc files
    Solution : First of all - keep your swc files inside your project folder, you can also disable global swc cache: change as3api.cpp code,refresh swc in flashBuilder bug!
    2. Flash Builder breakes content inside swc files (and also popular problem "TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@1f21adc1 to...")
    Solution : locate the project .actionScriptProperties file and set useFlashSDK=”false” :  Flash Builder 4.7 – useFlashSDK | In Flagrante Delicto!
    In this case you can also download latest Apache Flex SDK to target new Flash player versions: http://flex.apache.org/
    Hope this helps!
    P.

  • In System Preferences- Sharing- Remote Management the address doesn't reflect the computer name.

    Hi,
    I have a dual boot system with two seperate hard drives, Lion and Snow Leopard.  One drive has a name of mac-pro2 for Lion and mac-pro2sl for Snow Leopard.  Something happened when I rebooted from Snow Leopard to Lion that in System Preferences->Sharing->Remote Management that the computer name had changed to the Snow Leopard  computer name it has a address and name of mac-pro2sl.  I have change the Computer Name: and it worked and was changed to mac-pro2 but Remote Management still has the address of mac-pro2sl and doesn't reflect the computer name.  I can ssh into Lion with mac-pro2sl but I have a conflict with from other computers when I log in with a warning of "Remote Host Identification has Changed".  How do you change the computer name for remote management and ssh?
    I have changed the hostname and it reflects the change when you login, mac-pro2 for Lion.  But when you ssh into Lion it requires mac-pro2sl not mac-pro2.
    When I change the computer name it shows below that the name in "Remote Management: On" "computer using the address mac-pro2sl" is selected but then doesn't change but remains the same when the dialog closes.  How do you change the address to reflect the computer name? Is there a command line utility?
    Thanks for any help.

    If this problem is due to DNS, look in your configuration. What is the number one DNS server address? Is it local, or is it on the Internet at large? Or post the Address here and folks can help you look it up.
    192.168.yyy.zzz
    10.xxx.yyy.zzz
    172.xxx.yyy.zzz
    are all strictly local.

  • JSP and Access 2007 database

    i've been trying to look for codes on how to access the Access 2007 database (.accdb).
    i've done a previous JSP app with Access database, but it is of a lower version (.mdb).
    i need something like the following, but for the 2007 version. is it just a matter of changing the extension for both statements, or is there more to it?
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String DBQ = request.getRealPath("sales.mdb");
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + DBQ + ";DriverID=22;READONLY=true";thanks.

    <%@page import="java.sql.*" %>
    <table boder="1">
    <%
    Statement statement;
    Connection conn;
    String url = "jdbc:mysql://localhost/dbName";
    String user = "username";
    String pass = "password";
    try {
        class.forName("com.mysql.jdbc.Driver");
        conn = DriverManager.getConnection(url, user, pass);
        statement = conn.createStatement();
    String query = "SELECT images FROM database";
    ResultSet results = statement.executeQuery(query);
    while(results.next()) {
    %>
        <tr>
            <td><img src="<%= results.getString("images") %>"></td>
        </tr>
    <% } %>
    </table>The while loop will loop through your result set and print the table row for each image it finds in the query.
    Hope this helps,
    Jon

  • Why Java Platarform Micro Edition 3.0 doesn't reflect the reality ?

    Hi guys,
    It's my first ME project and I would like to know why into version 3.0 of ME, don't have the necessity of create your access (read and write into files) methods using Threads, and in 2.5.2 I must have to use Threads ? Because my project runs smooth into 3.0 but not into my mobile (E63) and 2.5.2 emulator, after reading plenty docs, and change the emulator to 2.5.2 I did discover that have the need of using Threads. What is the right one and why the 3.0 doesn't reflect the reality ?
    There are any way that my project made with 3.0 runs smooth, how ?
    Thank you in advance.

    Hi once again,
    One example of what I'm doing, using the javax.microedition.io.file.FileConnection to save and read my files, though it only works into my 3.0 emulator.
    I'm using this method to open and read the file.
    private String loadCipher(String typedKey, String pathLoad, String fileName) throws DigestException {
            StringBuffer notFormattedText = new StringBuffer();
            pathLoad = pathLoad + fileName;
            FileConnection fc = null;
            InputStream is = null;
            try {
                fc = (FileConnection) Connector.open(pathLoad);
                is = fc.openInputStream();
                int ch = 0;
                for (int i = 0; i < fc.fileSize(); i++) {
                    if ((ch = is.read()) != -1) {
                        notFormattedText.append((char) ch);
                is.close();
                fc.close();
            } catch (IOException ioe) {
                System.out.print("Error reading!");  // Here I'll have to deal with exceptions
                System.out.print("IOException : " + ioe.getMessage());
            } catch (SecurityException se) {
                System.out.print("Error security!");  // Here I'll have to deal with exceptions
                System.out.print("Securuty exception : " + se.getMessage());
            pathLoad = FILE_ROOT;
            String myFileText = notFormattedText.toString();
            byte[] keyFromFile = readKey(typedKey, myFileText.getBytes()); // Here is where the program goes and decript my file
            return new String(keyFromFile);  // Here I return the decripted text to be compared with password or for that the user might read it.
        }I don't intend to use Thread to run it, although I'm afraid of that it's the only way and with this all program structure will have to be re-designed.
    Anyone knows if Thread is needed just to use the javax.crypto.... and javax.security..... ? Because I'm lost.
    Thank you in advanced

  • World Clock doesn't reflect new time in Santiago

    World clock on my iPad and also iPhone don't reflect to new time in Santiago, who went one hour forward on Saturday night.
    Any ideas?

    The iPad, iPod, iPhone doesn't recognize the change. Officially (to the world) the "summer time hour" change last days of October in Chile, not early September. You need to change the hour manually and choose Buenos Aires time hour.
    Three years ago, the Chilean government forward the summer time hour.
    I hope this help.

  • JSF page fails to reflect saved changes to model

    How do I refresh the info kept in the JSF backing bean in order to reflect changes saved to the model?
    My JSF page contains rows of data. Depending on the user’s choices, one or more rows may be eliminated from the model. My problem is the change in the model is never reflected in subsequent page displays, unless I kill the session. I’m sure this behavior is because the backing bean has a scope of session and the data loaded into the session bean never changes to reflect the change in the model. Invalidating the session kills everything including stuff I want to keep around (like logon info and other stuff that will really never change during the session). Changing the backing bean scope to request breaks the update completely.
    Help!!!
    Regards,
    Al Malin

    Thanks for the reply.
    I have (actually had) two problems. The first one I've solved since my initial post (stupid error on my part).
    The other unsolved problem is JSF pages displaying stale data. User navigates to first page, navigates to second page, at this point the database changes, and then the user navigates back to first page. Navigating back to the first page shows the data how it was, not how it is, because it's from the session bean and not the database. If I could kill the session bean when the user navigates from the page the problem would be solved because I build the inital display in the constructor (BTW, please advise if this is a bad approach).
    Frank, your reply raised a question. Is there a way to specify a refresh frequency? If so, how?
    Thanks,
    Al Malin

  • Why doesn't iDVD burn changes made within iMovie?

    I have iMovie 6.0.3 and iDVD 6.0.3 and have made several movies and DVDs over the past few years. But now have hit something very frustrating....
    1) I've just completed a movie in iMovie. Took it to iDVD, created menus etc. then burned it to a DVD-RW. Noticed a couple of changes I wanted to make, namely a soundtrack volume adjustment, and a subtitle change (within iMovie). Made the changes in iMovie.
    2) When I opened iDVD again, it said it noticed some changes in the iMovie project and would I accept them. Answered yes. When I reviewed these changes in iDVD preview, all was well. It showed the new subtitle.
    3) Did another burn (3-4 hour process, mostly encoding) to disk image. Lo and behold, this new movie still showed the OLD subtitle!!
    4) Deleted this disk image file. Checked the iDVD preview again, and it showed the corrected subtitle. Created a NEW disk image (for the THIRD time!) and four hours later discover that the OLD subtitle is still there!!!
    What the heck is going on?? iMovie file was modified, resulting iDVD project file reflected the change, but the "burn" result does NOT reflect the change!!!! Why is iDVD Burn sill picking up the old version of my movie?____
    Thanks-

    You're right. Only selecting Advanced>Delete Encoded Assets did the trick. Otherwise, even though iDVD recognizes that the iMovie file had changed, it doesn't necessarily "pick up" all the changes ....unless you Delete Encoded Assets.
    I don't know which changes iDVD does or doesn't pick up, but in future I will always Delete Assets to be sure. Saves lots of time in the long run.
    THANKS for your help!!
    P.S. I did not have background encoding enabled. Never do.

  • [svn] 3839: Update the channel url to reflect the change in the runtime channel

    Revision: 3839
    Author: [email protected]
    Date: 2008-10-23 07:42:37 -0700 (Thu, 23 Oct 2008)
    Log Message:
    Update the channel url to reflect the change in the runtime channel
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-manual/ajax/messaging/TextMessageRuntimeDest.html

    Many ways to do this. The easiest is to have a method in one of your classes that reads the data from the database and creates all the proper structure under a RootNode and then returns that RootNode.
    Whenever you want to refresh the tree, just call that method to recreate the root node (and all the underlying structure/nodes) and then re-set the root node of your tree model using the setRoot() method. That will cause it to refresh the display given the new root node.
    Once you have that working, you can get fancier and make it more efficient (only updating/firing events for the nodes that actually changed, etc).

  • Using Database Change Notification instead of After Insert Trigger

    Hello guys! I have an after insert trigger that calls a procedure, which in turn is doing an update or insert on another table. Due to mutating table errors I declared the trigger and procedure as autonomously transactional. The problem is, that old values of my main tables are inserted into the subtable since the after insert/update trigger is fired before the commit.
    My question is how can I solve that and how could I use the change notification package to call my procedure? I now that this notification is only started after a DML/DDL action has been commited on a table.
    If you could show me how to carry out the following code with a Database Change Notification I'd be delighted. Furthermore I need to know if it suffices to set up this notification only once or for each client seperately?
    Many thanks for your help and expertise!
    Regards,
    Sebastian
    declare
    cnumber number (6);
    begin
    select count(*) into cnumber from (
    select case when (select date_datum
        from
          (select f.date_datum,
            row_number() over (order by f.objectid desc) rn
          from borki.fangzahlen f
          where lng_falle      = :new.lng_falle
          and int_fallennummer = :new.int_fallennummer
          and lng_schaedling   = :new.lng_schaedling
          and date_datum       > '31.03.2010'
        where rn=1) < (select date_datum
        from
          (select f.date_datum,
            row_number() over (order by f.objectid desc) rn
          from borki.fangzahlen f
          where lng_falle      = :new.lng_falle
          and int_fallennummer = :new.int_fallennummer
          and lng_schaedling   = :new.lng_schaedling
          and date_datum       > '31.03.2010'
        where rn=2) then 1 end as action from borki.fangzahlen
            where lng_falle      = :new.lng_falle
            and int_fallennummer = :new.int_fallennummer
            and lng_schaedling   = :new.lng_schaedling
            and date_datum       > '31.03.2010') where action = 1;
    if cnumber != 0 then
    delete from borki.tbl_test where lng_falle = :new.lng_falle
    and int_fallennummer = :new.int_fallennummer
    and lng_schaedling   = :new.lng_schaedling
    and date_datum       > '31.03.2010';
    commit;     
    pr_fangzahlen_tw_sync_sk(:new.lng_falle, :new.int_fallennummer, :new.lng_schaedling);

    It looks like you have an error in line 37 of your code. Once you fix that the problem should be resolved.

Maybe you are looking for