Document insertion (PL/SQL Gateway) in CA: HELP NEEDED!

Hi,
I've written a PL/SQL procedure to be called through the PL/SQL
Gateway to upload a document for updating documents in CAs.
The routine works for not-versioned or versioned/replace items,
performing an update of the wwdoc_document$ table (with blob
upload from the gateway) and a call to the wwsbr_api.modify_item_post_upload.
Now, I'm extending it to allow the insertion of a new version
of an already existing item.
The approach I'm following is to insert a new row in the
wwdoc_document$ table with
l_src_blob := portal30.wwdoc_api.get_document_blob_content(
p_name => p_file);
insert into portal30.wwdoc_document$ (blob_content) values
(l_src_blob);
By this way the file is loaded into the table, with the filename
in the format Fnnnnnn/NAME.EXT (as per wwdoc_api docs), and
with p_file having the name returned.
Now, I'm trying to submit it to the modify_item_post_upload
(with all the parameters), but I'm getting an error...
Moreover, I do not know if all the settings (doc ACL update,
name conversion -from Fnnnnnn/NAME.EXT to NAME.EXT unique-,
path id, etc.) are taken in charge by the modify_item or not,
and in this second case, what I have to do...
Anyone around can bring an help? Thanks a lot in advance.

Have you tried these instructions from the documentation?
Run apxconf.sql as shown in the following example:
@apxconf
When prompted, enter a password for the Application Express Admin account.
Be sure to make a note of the password you enter. You will use this password to log in to Oracle Application Express Administration Services.
When prompted, enter the port for the Oracle XML DB HTTP server. The default port number is 8080.
Enter the following statement to unlock the ANONYMOUS account:
ALTER USER ANONYMOUS ACCOUNT UNLOCK;Also, you don't login to the workspace with the apex_public_user account. You use the internal workspace with the admin username and the password you selected above. Once you're logged into the internal workspace you can create regular workspace accounts and then login with them.
Earl
Edited by: EarlL on Apr 8, 2009 11:25 PM

Similar Messages

  • SQL Exception: General Error - Help Needed

    Hi,
    I am getting an error at QuerySales.executeUpdate() statement in the following code.
    I never had this kind of problem with other examples using executeUpdate statement. I even checked with "addBatch" but got the same error. Please help me if you know anything.
    Thanks,
    Ravi
    PreparedStatement QuerySales;
    insertString= "insert into TestNoName values (?, ?)";
    String query2 = "SELECT Number, Name FROM TestNoName";
    Statement stmt;
    try {
    con = DriverManager.getConnection(url,"","");
    System.out.println("Successfully Connected to Database");
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    QuerySales = con.prepareStatement(insertString, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    ResultSet rs2 = stmt.executeQuery(query2);
    for (int i=0; i<=10; i++)
    rs2.last();
    int count = rs2.getRow();
    System.out.println(count);
    if (count == 0)
    lNumber = 1;
    else {
    lNumber = rs2.getInt("Number");
    lNumber++;
    QuerySales.setInt(1,lNumber);
    QuerySales.setString(2,"Ravi");
    QuerySales.executeUpdate();
    System.out.println("Hi");
    System.out.println("Exececuted SQL Statement- Inserted One Record");
    System.out.println("Fields of TestNoName");
    int count1=0;
    ResultSet rs3 = stmt.executeQuery(query2);
    //rs2.beforeFirst();
    while (rs3.next()) {
    count1++;
    int n = rs3.getInt("Number");
    String Name1 = rs3.getString("Name");
    System.out.println(n + " " + Name1);
    System.out.println(count1);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    }

    I found the reason for error. I declared the result set object within the for loop. Now it is working fine.
    Ravi

  • Sql Forms 2.3 help needed urgent

    I have a situation here.How to navigate to the next blk, And If we make any changes in the .inp file will it help?
    My client here uses Forms 2.3 for there Oracle Apps 10.7c

    Use the block level trigger FND_NXTBLK, or if not in an AOL environment use NXT_BLK (if I recall correctly). This is how you navigate from block to block. The command would be
    #EXEMACRO exetrg FND_NXTBLK;
    or you could use go_blk
    #EXEMACRO GO_BLK block_name;
    The .inp file is your form. Don't edit it unless you know what you are doing. Use the SQL*Forms tool and you'll be safer.
    Hope this helps. Not much detail in your posting. - Tristan

  • Invoking SQL Loader from linux - Help Needed

    Hi All,
    When i tried to invoke the sql loader from linux by using following command
    sqlldr username@server/password control=loader.ctl
    But its always throws this message
    Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No message file for product=RDBMS, facility=UL
    Can somebody help me to fix this issue?

    You may need to set your Oracle environment, try this ($ is the command prompt):
    $ export ORACLE_SID=orcl
    $ . /usr/local/bin/oraenv
    $ sqlldr username@server/password control=loader.ctl:p

  • SQL Select Statement. Help Needed

    Hi all,
    Can anyone point out why i am getting this error. Any help is appreciated.
    javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
    EmployeeID field is text field.(MS Access DB). It is not a primary key.
    Here is what I have(code)
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:empapp";
    Connection conn = DriverManager.getConnection(url);
    Statement stmt = conn.createStatement();
    String id = request.getParameter("ID"); // ID is passed from another jsp page.
    if(id != null)
    String query = "SELECT EmployeeID, LastName, FirstName, EmailAddress, PhoneNumber from Employees where EmployeeID=?";
    PreparedStatement statement = conn.prepareStatement(query);
    statement.setString(1, id);
    ResultSet rs = stmt.executeQuery(query);
    %>
    Employee ID: <%= rs.getString("EmployeeID") %>
    Lasyt Name: <%=rs.getString("LastName")%>
    First Name: <%=rs.getString("FirstName")%>
    Email Address: <%=rs.getString("EmailAddress") %>
    PhoneNumber: <%=rs.getString("PhoneNumber") %>
    <%
    %>
    I m only trying to print it out.
    Thanks

    Thanks for the reply. I know this is not the way to do
    it. I have a question for you.
    What's the difference in storing the DB connection
    info, query etc..
    a. In a pure java object.
    b. In a servlet.
    c. In a java bean.
    Which one to use and why?
    Thank you
    What's the difference between (a) and (c) in your mind? Are not Java Beans pure Java objects?
    Depends on the app.
    For my Web apps I let Tomcat create a connection pool for me. I don't store connections anywhere in my code. I check them out of the pool, use them, and put them back.
    I think this is a good way to go for any app.

  • SQL Server Stored procedure help needed

    I want to write a stored procedure to get result like
    this....how can i do?.
    Result needed from stored procedure.......
    lastname,firstname,logout_time,activity,score,pass/fail
    Tables....
    select activity_id
    ,login_time,logout_time,q_id,r_id,correct,activity
    from activity_log
    activity_log got multiple records....this is just dump all
    the activity from test questions.
    select user_id,firstname,lastname
    from users
    Queries inside the stored procedure.......
    select b.lastname,b.firstname,
    a.activity_id,a.login_time, a.logout_time
    from activity_log a, users b
    where a.activity_id = b.user_id
    group by user_id,lastname,firstname,login_time,logout_time
    select activity
    from activity_log
    where activity_id= 'a.activity_id' and activity is not NULL
    select sum(convert(int,correct,1)) as score
    from activity_log
    where activity_id='a.activity_id'
    if activity is C1
    select r_id,correct
    from activity_log
    where q_id = '10' and activity_id = 'a.activity_id'
    "Question 10 missed."
    select r_id,correct
    from activity_log
    where q_id = '20' and activity_id = 'a.activity_id'
    "Question 20 missed."
    if score gt 50
    pass
    else
    fail
    end if
    end if
    if activity is C2
    select r_id,correct
    from activity_log
    where q_id = '30' and activity_id = 'a.activity_id'
    "Question 30 missed."
    select r_id,correct
    from activity_log
    where q_id = '40' and activity_id = 'a.activity_id'
    "Question 40 missed."
    if score gt 50
    pass
    else
    fail
    end if
    end if

    Thanks. Please see now...i updated my posting.
    SQL Server 2000.
    Please see my tables...
    select activity_id
    ,login_time,logout_time,q_id,r_id,correct,activity
    from activity_log
    select user_id,firstname,lastname
    from users

  • For a type document insert contract no agree (consent)

    Hi,
    I've a problem.
    I must create a purchase order oil  with reference a contract oil but a sistem block with a message :' For a type document insert contract no agree (consent)'.
    Help me!
    Bye-bye.

    I followed this is:
    Menu path
    SPRO-MM-Purchasing-Contract-define document type-
    select your contract doc type and click on link purchase req
    here check box for R/S make checked for all your doc type except RV
    but I don't create the order (type oil) in reference a contract. I've always the msg 'For a type document insert contract no agree (consent)'

  • File Upload and Download in Oracle iAS PL/SQL Gateway

    i'm using the example 113471.1 to "File Upload and Download in
    Oracle iAS PL/SQL Gateway"
    when i press the submit button after i select a file to upload
    i get the next message in the browser "No se puede mostrar la
    pagina" HTTP 404 file not found.
    I think the problem is in ctnsample.upload_form in the line
    htp.formOpen(curl => 'cntsample.upload', cmethod => 'POST',
    cenctype => 'multipart/form-data');
    The ctnsample.remove work fine.
    Could you,help me...

    There is a document in the Oracle 9iAS 1.0.2.2 Library titled "Using the PL-SQL Gateway" Part Number A90099-01.pdf that explains file upload and download through modplsql. In particular there is a section there titled "Direct BLOB Download" which explains how one can easily download a blob utilising the wpg_docload package.
    I am still concerned that there exist duplicate copies of my blob content. One copy in the wwdoc_document$ table, and one in my custom table.
    Dmitry/Oracle can you confirm this?

  • SQL Server2008 help needed

    Having trouble with SQLServer 2008 (not MySQL) and my database connection in Dreamweaver CS6.  My document type is set as .asp using VBScript.  I can list the table information  but cannot use the insert wizard to add new records.  I don't get any errors after creating the insert form, but no records get inserted.  I'm not a VBScript expert, but do I have to manually write some code to insert records?  How do I attach it to a button?

    Thanks for the quick reply.  I won't be back in the office for a few days, but I'll try to post it when I get back in.  It's pretty much the code generated from the Dreamweaver Insert Record wizard.  I see where the submit button is created and the value is set but the action on the form is set to MM_insert, so I don't see where the submit code is actually called.
    Date: Wed, 3 Oct 2012 12:06:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: SQL Server2008 help needed
        Re: SQL Server2008 help needed
        created by bregent in Dreamweaver General - View the full discussion
    This post should be moved to the app dev forum.  Please post the code from your form and the insert script pages.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4746757#4746757
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4746757#4746757
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4746757#4746757. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Dynamic SQL and PL/SQL Gateway

    This question is kind of out of curiosity...I had created a procedure that used some dynamic sql (execute immediate), and was trying to use it on pl/sql gateway. I kept getting page not found errors until I removed the execute immediate statement, and reverted to using static sql statements.
    I am just curious, is dynamic sql not supported at all with pl/sql gateway?
    Thanks
    Kevin

    > Relax damorgan, no need to be condescending. Of course I read the docs ..
    Well, you're one of the few that actually read the docs.. And one of many that lacked to state any real technical details for forum members to understand the actual problem, the actual error, and what the environment is that this is happening in.
    Remember that you came to this forum for forum members to help you. In order for us to do that, you need to help us understand
    - your problem
    - your environment
    - what you have tried
    What PL/SQL Gateway do you refer to? Thus is an old term for an old product - today in Oracle there are two "gateways" into the PL/SQL engine via HTTP. Via Apache/mod_plsql and via the internal Java servlet web engine called EPG inside Oracle.
    As for what the "Gateway" access to the PL/SQL engine via HTTP.. whether it supports EXECUTE IMMEDIATE or not is like asking if a car "supports" soft drinks or not (just because a human that may consume soft drinks acts as the driver of the car). Not sensible or relevant at all.
    mod_plsql creates an Oracle session to the database instance, and executes a PL/SQL procedure in the database. This is no different from any other client connection to Oracle. Oracle has no clue that the client is mod_plsql and not TOAD or Java or VB or PHP or Perl or whatever else.
    So how can this support or not support the EXECUTE IMMEDIATE command? Does PL/SQL support EXECUTE IMMEDIATE? Well duh...
    Why do you get a generic 404? Because the PL/SQL call made by mod_plsql failed with an unhandled exception. mod_plsql gets that exception and now what? Was a valid HTP buffer created for it to stream to the web browser? If the buffer perhaps partially completed? All that mod_plsql knows is that it asked for a HTP buffer via that PL/SQL call and it got an exception in return.
    A 404 HTTP error is the only reasonable and logical response for it to pass to the web browser in this case.
    PS. to see why mod_plsql fail, refer to the access_log and error_log of that Apache httpd server

  • Issues with using Embedded PL SQL Gateway with Apex 4.2

    Hi,
    I have installed Oracle 11g R2 and want to develop an application using Apex 4.2 (needs upgrade from 3.2 version which has come bundled).
    For the server, I would like to use the Oracle HTTP server, but it seems to require a separate license as against the same in Oracle10g.
    I would like to know what are the performance related issues b/w using the embedded PL/SQL Gateway (Oracle XML DB HTTP Server) that comes with Oracle 11g R2 as against the HTTP Server found as a part of the fusion middleware bundle. Is it wise to procure the license for HTTP Server?
    Details:
    DB OS: Windows 7 (64 bit) (DB and Apex are on the same machine)
    Number Of Users of application: 10-20
    Application is mainly used more for keeping track of details as against heavy processing or the like
    Thanks

    For the server, I would like to use the Oracle HTTP server, but it seems to require a separate license as against the same in Oracle10g.What gives you this impression? The licensing position remains the same: OHS is covered by the DB license if OHS is run on the same server. See Joel's post and the document he links to: +{message:id=9256804}+.

  • Setup for PDF printing using Embedded PL/SQL Gateway, 11G DB and APEX 3.1

    I've setup APEX on 11G using the Embedded PL/SQL Gateway. Its all working well.
    I've enabled Network Services and can see a couple of printers I've defined after running
    select * from DBA_NETWORK_ACLS;
    and also can see the FLOWS_030100 and FLOWS_030000 users when I run
    select * from DBA_NETWORK_ACL_PRIVILEGES;
    I have been through http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html and can see that I have a few choices ...
    * Oracle BI Publisher,
    * Apache FOP or
    * some other XSL-FO Processing Engine.
    I am not able to use Oracle BI Publisher ... license required:-( ... so that leaves the other two choices .. as I'm using the Embedded PL/SQL Gateway the Apache FOP is not an option ..
    that leaves other XSL-FO Processing Engine .. has anyone had any experience in this area .. and can give me a few pointers ...
    I'm kinda surprised I have little choice .. am I missing something?
    Regards
    Adam

    Adam,
    >> as I'm using the Embedded PL/SQL Gateway the Apache FOP is not an option
    Not a true statement. Using Oracle Containers for J2EE (10.1.3.2), as listed in that document you reference, is all you need to use Apache FOP. You don't know the full-blown Apache.
    Joel

  • Create document with PL/SQL xml parser

    Hello,
    I'm trying to create a document with PL/SQL package xmldom on 8.1.7 and write to a file.
    The problem is that my file is empty when it's created.
    Can anyone send me an example of this simple problem or fullfill my example so it's works.
    As you understand I'm new in using XML. :)
    My example is:
    declare
    doc xmldom.DOMDocument;
    n xmldom.DOMNode;
    e xmldom.domelement;
    t xmldom.domtext;
    begin
    doc := xmldom.newdomdocument;
    t := xmldom.createtextnode(doc, 'ROOT');
    n := xmldom.makenode(t);
    doc := xmldom.makedocument(n);
    xmldom.writetofile(doc, 'd:\orant\xdk\plsql\demo\test.xml');
    end;
    Regards
    Hekan

    Your problem may be memory for the JavaVM. Remember, the PL/SQL
    parser uses the Java XML Parser APIs which run in a VM instance.
    Are you running Oracle 8i? If you are you can access our Java
    XML parser loaded in 8i's VM directly from your PL/SQL code.
    That is in fact how our PL/SQL Parser does it.
    Finally, we have no experience loading other XML Parsers into
    Oracle.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Premal Mehta (guest) wrote:
    : Hi,
    : I asked about his a few days back. Pl/SQL parser does not
    work
    : for XML files of size greater then 500Kb. You replied saying
    : that there were no such problem.
    : However whenever I try, either I get some exception or
    Pl/SQL
    : crashes due to memory error. I am clueless. Is there some
    : setting that I can do to get away with the problem? Please
    : guide...
    : Also, tell me about the alternatives.
    : Can I write code in Java and load these class filesin Oracle
    : and then reference these classes from Pl/SQL code. Can I load
    : any other parser for Java in Oracle.
    : Looking forward for help...
    : Premal.
    null

  • Insertion problem .... plzzzzzzzzzzz help

    I have a jsp page code below mentioned...
    This jsp page retrieved values from a html files, which is shown as bold.
    my problem is that i cannot insert the values in database.plzz help me...
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <%@ page import =" java.sql.Date.*" %>
    <%@ page import =" java.text.SimpleDateFormat.*" %>
    <%@ page import =" java.util.Date.*" %>
    <%@ page import =" java.text.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page language="java" import="java.sql.*" %>
    <%
         String     Security_No, Category_code,Face_Value, Purchase_Value,Interest_Paid,Interest_Received,Brokrage,Total_Value,Voucher_No,Voucher_Date,Voucher_Amt,D_Date1,D_Date2,Ledger_No,Maturity_Date,sql1 ;
         java.util.Date voudate_temp=null;
         java.util.Date duedate1_temp=null;
         java.util.Date duedate2_temp=null;
         java.util.Date matdate_temp=null;
         ResultSet results;
         PreparedStatement sql;
    try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection conn=DriverManager.getConnection("jdbc:odbc:pf","scott","ttlscott");
         System.out.println("got connection");
              try
                   SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
                   format.setLenient(false);
                   int     sec_no, catg_code,face_val,pur_val,int_paid,int_recd,brkr,tot_val,vou_amt;
                   String vou_no, lf_no;
                   java.sql.Date vou_date, due_date1, due_date2,mat_date;
                   boolean     doneheading = false;
                   Statement s=con.createStatement();
              Security_No = request.getParameter("secno");
              Category_code = request.getParameter("catcode");
              Face_Value = request.getParameter("facevalue");
              Purchase_Value = request.getParameter("purvalue");
              Interest_Paid = request.getParameter("intpaid");
              Interest_Received = request.getParameter("intrecvd");
              Brokrage = request.getParameter("brokrage");
              Total_Value = request.getParameter("tvalue");
              Voucher_No = request.getParameter("vouno");
              Voucher_Date = request.getParameter("voudate");
              Voucher_Amt = request.getParameter("vouamt");
              D_Date1 = request.getParameter("due1");
              D_Date2 = request.getParameter("due2");
              Ledger_No = request.getParameter("lfno");
              Maturity_Date = request.getParameter("maturity");          
              sql1 = "insert into sec_mast values (" + "'" + Security_No + "', '" Category_code "' , '" + Face_Value + "', '" + Purchase_Value + "', '" + Interest_Paid + "', '" + Interest_Received + "', '" + Brokrage + "', '" + Total_Value + "', '" + Voucher_No + "', #"+ Voucher_Date+ "# , '" + Voucher_Amt + "', #" + D_Date1 + "#, #" + D_Date2 + "#, '" + Ledger_No + "', #" + Maturity_Date + "#)" ;
              s.executeUpdate(sql1);               
                   sql = con.prepareStatement("SELECT * FROM sec_mast WHERE sec_no = '" + Security_No + "' ");
                   results = sql.executeQuery();
                   while(results.next())
                        if(! doneheading)
                             doneheading = true;
    sec_no = results.getInt("sec_no");
    catg_code= results.getInt("catg_code");
    face_val = results.getInt("face_val");
    pur_val = results.getInt("pur_val");
    int_paid= results.getInt("int_paid");
    int_recd = results.getInt("int_recd");
                        brkr = results.getInt("brkr");
    tot_val= results.getInt("tot_val");
                        vou_no = results.getString("vou_no");
                        voudate_temp = results.getDate("vou_date");
    vou_amt = results.getInt("vou_amt");
                        duedate1_temp = results.getDate("due_date1");
    duedate2_temp= results.getDate("due_date2");
    lf_no= results.getString("lf_no");
         matdate_temp = results.getDate("mat_date");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   vou_date = sdf.format(voudate_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   due_date1 = sdf.format(duedate1_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   due_date2 = sdf.format(duedate2_temp);
                   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MM/dd/yyyy");
                   sdf.setTimeZone(TimeZone.getDefault());
                   mat_date = sdf.format(matdate_temp);
    out.println("<BODY bgColor=blanchedalmond text=#008000 topMargin=0>");
    out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia > <BIG>SECURITY INFORMATION</BIG></FONT></P>");
    out.println("<P align=center>");
    out.println("<TABLE align=center border=1 cellPadding=1 cellSpacing=1 width=\"75%\">");
    out.println("<TR>");
                        out.println("<TD>Secuirty No.</TD>");
    out.println("<TD>Category Code</TD>");
    out.println("<TD>Face Value</TD>");
    out.println("<TD>Purchase Value</TD>");
                        out.println("<TD>Interest Paid</TD>");
                        out.println("<TD>Interest Recieved</TD>");
    out.println("<TD>Brokrage Value</TD>");
    out.println("<TD>Total Value</TD>");
    out.println("<TD>Voucher No.</TD>");
    out.println("<TD>VOucher Date</TD>");
                        out.println("<TD>VOucher Amount</TD>");
    out.println("<TD>Due Date 1</TD>");
                        out.println("<TD>Due Date 2</TD>");
    out.println("<TD>L F No.</TD>");
                        out.println("<TD>Maturity Date</TD>");
                        out.println("<tr><td>" + sec_no);
                        out.println("<td>" + catg_code);
                        out.println("<td>" + face_val);
                        out.println("<tr><td>" + pur_val);
                        out.println("<td>" + int_paid);
                        out.println("<td>" + int_recd);
                        out.println("<tr><td>" + brkr);
                        out.println("<td>" + tot_val);
                        out.println("<td>" + vou_no);
                        out.println("<tr><td>" + vou_date);
                        out.println("<td>" + vou_amt);
                        out.println("<td>" + due_date1);
                        out.println("<tr><td>" + due_date2);
                        out.println("<td>" + lf_no);
                        out.println("<td>" + mat_date);
                   if(doneheading)
                        out.println("</table>");
                   else
                        out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=0>");
                        out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
    out.println("<P align=center>");
                        out.println("No matches for " + Security_No);
                   }catch(ParseException e) {
    out.println("do date format error action.<br>");
              catch (SQLException s)
                   out.println("<BODY bgColor=blanchedalmond text=#FF0000 topMargin=50>");
                        out.println("<P align=center><FONT face=Helvetica><FONT color=fuchsia ></FONT></P>");
    out.println("<P align=center>");
                   out.println("Duplicate Entry.Try another Security Code No.<br>");
              catch(ParseException e) {
              out.println("do date format error action.<br>");
         catch (ClassNotFoundException err)
              out.println("Class loading error");
    %>
    </body>
    </html>

    you should try posting it in the jsp forum.what error/exceptions are you getting if any?

  • How to deploy in the "embedded PL/SQL gateway" architecture

    Hello,
    I thought I could use an url like "http://my_server_ip:8080/apex" in order to reach my application from another machine in the same subnet, but I get "failed to connect" error!
    Is there any configuration I must do prior for this to work?
    My architecture is The embedded PL/SQL gateway
    Please help
    Mujos

    <ol><li>What version of the database are you using (11.1, 10.2, XE)?
    </li>
    <li>What version of APEX?
    </li>
    <li>Did you install APEX yourself or are you using APEX pre-installed in XE or 11g?
    </li>
    <li>What steps of the installation guide did you complete?
    </li>
    <li>Did any of them fail?
    </li>
    <li>If so, what errors?</li>
    </ol>
    Tyler

Maybe you are looking for