Execution of Dybamic Xsql pages

Hello all,
I am interested to know whether execution of dynamic xsql pages is possible? What I mean is, whether it is mandatory to have the physical xsql page on the disk? Can we dynamically form a xsql page and submit it (Without specifying URL) to the XsqlServlet to process,without storing it anywhere?
null

XSQL 1.0.3 release supports this feature.
Due out on OTN before Christmas.

Similar Messages

  • Unable to use the values returned by a PL/SQL stored procedure in a XSQL page

    Hi,
    I've been messing around with XML and XSQL in particular. I was trying to write a xsql page to display a report with account totals...I have the following .xsql which calls a PL/SQL stored procedure :
    <?xml version="1.0"?>
    <xsql:query connection="pfcdm" xmlns:xsql="urn:oracle-xsql">
    <xsql:set-session-param name="zasset_total" value="100">
    <xsql:dml connection="pfcdm">
    rraman.sp_vw_id(zasset_total,zinvm_total,zmkt_val);
    </xsql:dml>
    </xsql:set-session-param>
    select 'Asset total is {@zasset_total}' as "ASSET_TOTAL" from dual
    </xsql:query>
    My procedure sp_vw_id returns the values that it should. But, I am not sure how to declare variables within a page, and to output the return values. There is very scanty documentation on the usage of <xsql:dml> or <xsql:ref-cursor-function>.
    Any response would be greatly appreciated.
    Thanks,
    Raja

    Here is the example from the Oracle9i (complete rewrite) of the XSQL Chapter in our Oracle documentation.
    Question
    I using <xsql:dml> to call a stored procedure which has one OUT parameter, but I was not able to see any results. The executed code results in the following statement:
    <xsql-status action="xsql:dml" rows="0"/>
    Answer
    You cannot set parameter values by binding them in the position of OUT variables in this release using <xsql:dml>. Only IN parameters are supported for binding. You can create a wrapper procedure that constructs XML elements using the HTP package and then your XSQL page can invoke the wrapper procedure using <xsql:include-owa> instead.
    For an example, suppose you had the following procedure:
    CREATE OR REPLACE PROCEDURE addmult(arg1 NUMBER,
    arg2 NUMBER,
    sumval OUT NUMBER,
    prodval OUT NUMBER) IS
    BEGIN
    sumval := arg1 + arg2;
    prodval := arg1 * arg2;
    END;You could write the following procedure to "wrap" it, taking all of the IN arguments that the procedure above expects, and then "encoding" the OUT values as a little XML datagram that you print to the OWA page buffer:
    CREATE OR REPLACE PROCEDURE addmultwrapper(arg1 NUMBER, arg2 NUMBER) IS
    sumval NUMBER;
    prodval NUMBER;
    xml VARCHAR2(2000);
    BEGIN
    -- Call the procedure with OUT values
    addmult(arg1,arg2,sumval,prodval);
    -- Then produce XML that encodes the OUT values
    xml := '<addmult>'&#0124; &#0124;
    '<sum>'&#0124; &#0124;sumval&#0124; &#0124;'</sum>'&#0124; &#0124;
    '<product>'&#0124; &#0124;prodval&#0124; &#0124;'</product>'&#0124; &#0124;
    '</addmult>';
    -- Print the XML result to the OWA page buffer for return
    HTP.P(xml);
    END;This way, you can build an XSQL page like this that calls the wrapper procedure:
    <page connection="demo" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa bind-params="arg1 arg2">
    BEGIN addmultwrapper(?,?); END;
    </xsql:include-owa>
    </page>This allows a request like:
    http://yourserver.com/addmult.xsql?arg1=30&arg2=45
    to return an XML datagram that reflects the OUT values like this:
    <page> <addmult><sum>75</sum><product>1350</product></addmult>
    </page>

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • How to retrieve the outer parameter of a stored procedure in XSQL page

    I have to call a stored procedure in the xsql page that returns a resultset (ie. oracle table/record type) through an outer paramter. Is there any built-in xsql action tag available to get the parameter and present
    it in xml on the page? please help, thanks.

    You cant get two resultsets out of SP like this. The workaround is to merge and bring the resultsets.
    For this number of columns as well as corresponding datatypes have to be compatible. Also you will need one additional column which indicates resultset value. Then use this as filter to get your desired resultset out
    create procedure GetData as
    begin
    select 'resultset1' as Cat,*,.. N columns from Emp
    union all
    select 'resultset2' as Cat,*,.. N columns from Dept
    end
    create table #tmp1 (Ddeptid int, deptname varchar(500),Location varchar(100))
    Insert into #tmp1 (Ddeptid , deptname ,Location )
    Select column1,column2,column3
    from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdb..GetData')
    WHERE Cat = 'resultset1'
    create table #tmp (empid int , ename varchar(500),DeptId int , salary int)
    Insert into #tmp (empId,ename,deptId,salary)
    Select column1,column2,column3, column4
    from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdb..GetData')
    WHERE Cat = 'resultset2'
    also see
    http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx
    Another method is to populate table with relevant resultset within procedure itself and then select from the table directly outside.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Imported DocBook stylesheet location for XSQL Page

    Hi all,
    I've got the following XSQL page which queries a DocBook document stored in XMLDB as a schema-based CLOB.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    <page xmlns:xsql="urn:oracle-xsql" connection="jdbc/DBConnection1DS">
    <xsql:query max-rows="1" null-indicator="yes" tag-case="lower">
    SELECT extractValue(x.DOCBOOKS_DOC, '/book/part/title', 'xmlns="http://docbook.org/ns/docbook"') "BOOK_TITLE",
    extract(x.DOCBOOKS_DOC, '/book/part/chapter/sect1/sect2', 'xmlns="http://docbook.org/ns/docbook"').getStringVal() "BOOK_CONTENT"
    FROM DOCBOOKS_STORE x</xsql:query>
    </page>
    Which outputs the following:
    <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
         <page>
         <rowset>
         <row num="1">
    <book_title>
    This is a test string
    </book_title>
         <book_content>
    <sect2 xmlns="http://docbook.org/ns/docbook"><title>
    This is sect2/title test text.
    </title><para>
    This is sect2/para test text.
    </para></sect2>
    </book_content>
    </row>
    </rowset>
    </page>
    The query runs fine (thanks to help from the XML DB forum). I'm now trying to use the docbook.xsl HTML stylesheet but I'm not sure of the following:
    1) Where do imported stylesheets need to be stored for the XLST processor to find them and can we change the default location (DocBooks has loads of associated stylesheet includes)? I've tried several locations and corresponding hrefs but nothing seems to work.
    2) Since the output contains a mixture of both DocBook and non-DocBook tags, I'm guessing/hoping that the XLST processor can parse the string extract and all what I would need to do is use is the <xsl:import/> and <xsl:apply-import/>. Is this correct?
    Many thanks in advance.
    George.

    Just closing the loop on this one...
    1) After more trial and error, I found that the XLST stylesheet need to be in the same location as the *.xsql page. To check, I wrote a simple XLST to output HTML rather than confuse the issue with applying the docbook imported stylesheets. This worked as expected with the resulting HTML output, bar the fact that I now have a security issue with my stylesheet sitting in the /PUBLIC_HTML folder. For the moment this is OK since the application is for internal prototyping purposes.
    2) If I want the XLST processor to parse the underlying XML tags, then the data needs to be returned as XMLType and not a VARCHAR2 string which my <xsl:query extract().getStringVal())> does.
    Unfortunately I now have an enviromental problem retrieving XMLType data through my XSQL query. I believe this has something to do with my JDBC driver and/or missing libraries.
    Cheers

  • Using the XSQL Page Processor Programmatically Issue

    HI,
    I am using the oracle class "oracle.xml.xsql.XSQLRequest " to make use of the XSQL Page Processor from within a Java program and generate a diffenent format files (i.e. HTML, PDF). Everything works fine from the jdeveloper ,but when i deploy the code to Tomcat, I am getting the following error when I click on a submit button(The calls to Java code):
    java.lang.RuntimeException: java.lang.RuntimeException: Fatal error. Cannot create connection manager factory: oracle.xml.xsql.XSQLConnectionManagerFactoryImpl
    Here is the java code for rerfernce:
    // Construct the URL of the XSQL Page
    URL pageUrl = new URL("file://"+ContextPath+"invoice_html.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    // Setup a Hashtable of named parameters to pass to the request
    Hashtable params = new Hashtable(1);
    // pass the invoice value
    params.put("Invoice",rs.getString(3)); //Invoice Id
    // Create a invoice file
    File invoiceFile = new File(rs.getString(7)+rs.getString(3)+rs.getString(5));
    // Create an Output Stream
    FileOutputStream outStream = new FileOutputStream(invoiceFile);
    // Filter bytes to ASCII
    PrintWriter out = new PrintWriter(outStream);
    // Generate a HTML invoice for each account
    req.process(params, out, new PrintWriter (System.err));
    // Close the PrintWriter
    out.close();
    Any Solution or comments will be really appricated.
    Thanks
    Mohammad

    I have fixed the problem.

  • Apache not serving XSQL pages properly.

    java 1.2
    apache 1.3.12
    tomcat 3.2.1 (w/ mod_jk)
    Solaris 7
    XSQL 1.0.4.3
    The XSQL Servlet appears to be working fine through TOMCAT stand-alone. So for example, this
    "http://192.168.0.2:8080/xsql/demo/helloworld/helloworld.xsql" works fine...
    When I try to hit it through Apache (w/out the 8080 port) however I simply get the original XSQL query page instead of the query results. In other words, it appears Apache doesn't forward *.xsql requests to the XSQL Servlet...I think? Any ideas - thanks.

    Thanks for your responses...I think I've figured it out for both mod_jserv and mod_jk.
    The mapping of *.xsql to the oracle.xml.xsql.XSQLServlet is taken care of in the web.xml supplied in the XDK. This tells Tomcat to handle all *.xsql files with the XSQLServlet and that was working all along (Tomcat stand-alone).
    What's missing is that Apache needs to direct all *.xsql files to Tomcat. This is taken care of by adding the following lines to the httpd.conf:
    (for mod_jserv add)
    AddType text/xsql .xsql
    AddHandler jserv-servlet .xsql
    (for mod_jk add)
    JkMount /xsql/*.xsql ajp12
    In general, I simply mimiced the configuration of *.jsp files.
    I noticed a posting a few weeks back where someone was getting "rubbish" when they tried to access http://localhost/xsql/ - my guess is that apache was serving up the xsql pages "as is", without passing them onto Tomcat. This should hopefully do the trick...
    Comments?

  • Using '(' and less than operator in an xsql page sql query

    Dear All,
    I tried to use left parenthesis '(' and less than operator in an sql query through an xsql page, it doesn't let to use them.
    Do you know how to use those in an xsql page?
    Thanks for your help.
    Mustafa

    Following is the xsql page that I tried to run:
    <?xml version="1.0"?>
    <xsql:query xmlns:xsql="urn:oracle-xsql" connection = "bib" rowset-element="bib" row-element="book">
    (SELECT year,title,last,first,' ' as affiliation,publisher,price
    FROM book,author
    WHERE year=2001 and bookid=parentid
    UNION
    SELECT year,title,last,first,affiliation,publisher,price
    FROM book,editor
    WHERE year=2001 and bookid=parentid)
    INTERSECT
    (SELECT year,title,last,first,' ' as affiliation,publisher,price
    FROM book,author
    WHERE publisher='Publisher1' and bookid=parentid
    UNION
    SELECT year,title,last,first,affiliation,publisher,price
    FROM book,editor
    WHERE publisher='Publisher1' and bookid=parentid)
    </xsql:query>
    This is the error message generated after running:
    <ERROR>java.sql.SQLException: ORA-01009: missing mandatory parameter</ERROR>
    When I remove the parentheses it works but this results in a different result set.
    Can anybody tell me the reason?
    Thanks,
    Mustafa
    null

  • Running xsql pages in oracle 8.1.5

    Hi,
    I would like to use xsql with the oracle product I 've got:
    - Oracle 8i (8.1.5)
    or - OAS 4.0.7.1
    Apparently, I need to process some changes before to run xsql pages with the http server of Oracle 8.1.5 for example.
    I read that xsql servlet need jdk 1.1.8 or above and a servlet engine to work fine in Oracle 8i.
    So, it seems I need to update my oracle 8.1.5 with jdk 1.1.8 and a servlet engine.
    What are the steps to follow to configure correctly Oracle 8.1.5 to make it able to run xsql pages?
    Thanks for your help

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steve Muench ([email protected]):
    Step 1: Get a servlet engine
    The XSQL Release notes list all the
    servlet engines that are supported.
    Step 2: Follow the installation instructions in the release note.
    Several of the most popular servlet engines are listed there.
    You won't be running the XSQL Page processor inside the Database in 8.1.5, so the JDK version of 1.1.8 refers to the JDK ver of
    your servlet engine.<HR></BLOCKQUOTE>
    Thanks for your reply.
    So, there is no way to run xsql pages with Oracle 8.1.5.
    I must necessarly acquire a servlet engine.Isn't it?
    OAS 4.0.7.1 doesn't include servlet engine?
    Thanks
    null

  • Dynamic WHERE clause in .xsql pages

    I'm just getting started with XSQL and would like to know if you have more example source code available, or if anyone else knows of a good source.
    I'm trying to build a simple search page which accepts values that would normally form the where clause in an SQL statement and send them to an XSQL page which returns the results. The main problem is that I don't know how to specify the column names dynamically.
    Please let me know if you've come across this before, I'm sure this is not an unusual problem.
    P.S. When's the XML book coming out?

    See the "adhoc query" example that comes with the XSQL Servlet in the ./demo/adhocsql directory.
    Your query can be:
    <xsql:query columns="col1,col10" where="1=1">
    SELECT {@columns}
    FROM table
    WHERE {@where}
    </xsql:query>
    for example, where the columns and where attribute provide default values for the columns and where parameters. If the user passes in either or both of the parameters in the URL, they override the defaults.

  • XML/XSQL pages not running in 9iAS 903

    (Hopefully, this is the right place for this posting)
    I am trying to get my XML/XSQL pages to work with 9iAS 903 and I'm stuck.
    I am completely new to the XML and the XDK and have been trying since Friday to get the XDK installed and the demos to work as I'm hoping that this will get my runtime 9iAS 903 environment setup properly so that I can run my XSQL pages.
    Note I was able to install either XDK version 902 or 10 beta into the OC4J Standalone that comes with JDeveloper but when I issue the same command to install into 9iAS 903 it fails with the error listed below:
    C:\oracle\Ora9ias_j2ee\j2ee\home>java -jar admin.jar ormi://myhost.mydomain/ ias_admin welcome -deploy -file C:\oracle\xdk10beta\xdk\demo\java\xsql\xsqldemos.ear -deploymentName xsqldemos
    error:
    Error: javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect
    So, now I'm wondering if something else need to be installed, but what?
    Bill G...

    Hi,
    Can you post your question at
    Oracle Application Server - General
    Regards,
    Anupama

  • Getting error when I request for an XSQL page

    Hi,
    I have loaded XDK 9.0.2.0.0 on Oracle 9i J2EE Container (oc4j). Whenever I request for a XSQL page, I get the following error,
    Oracle XSQL Servlet Page Processor 9.0.2.0.0 (Production)
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: oracle/xml/sql/OracleXMLSQLNoRowsException
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Unknown Source)
    at oracle.xml.xsql.XSQLDocHandler.handlerForAction(XSQLDocHandler.java:279)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:137)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:146)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    The XSQL file contains the code (Example which comes along with the XDK),
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    SELECT 'Hello World' AS greeting FROM DUAL
    </xsql:query>
    <!--
    | $Author: kkarun $
    | $Date: 20-apr-00.23:50:36 $
    | $Source: /vobs/oracore3/demo/xdk/java/xsql/demo/helloworld/helloworld.xsql.mkelem $
    | $Revision: /main/0 $
    +-->
    Can any one tell me what may be the problem and what could be the solution..
    Thanks in advance,
    Kiran K.

    Hi,
    Make sure that you have in included xsu12.jar in the classpath. 'OracleXMLSQLNoRowsException' class is found in xsu12.jar and is bundled with XDK.
    Hope that helps.
    Savitha.

  • Include XSQL page into UIX page

    Hello,
    I am trying to build a page in UIX and then include an XSQL page into the <contents> region of the <pagelayout>.
    Does anyone know if this is possible? And if yes, if this should work agains OC4J and/or Apache/Jserv?
    I tried including the page using <uix:include node="pagename" /> but
    the uix engine assumes that the node has an .uix extension so this does not work (or even compile). Using the xsql namespace, I also tried <uix:include xsql:node"pagename" /> which does compile, but does not generate any output.
    Any ideas?
    Jeroen van Veldhuizen

    Hello,
    I am trying to build a page in UIX and then include an XSQL page into the <contents> region of the <pagelayout>.
    Does anyone know if this is possible? And if yes, if this should work agains OC4J and/or Apache/Jserv?
    I tried including the page using <uix:include node="pagename" /> but
    the uix engine assumes that the node has an .uix extension so this does not work (or even compile). Using the xsql namespace, I also tried <uix:include xsql:node"pagename" /> which does compile, but does not generate any output.
    Any ideas?
    Jeroen van Veldhuizen Hello Jeroen,
    First of all, why are you trying to do this? Is it for data binding with BC4J view objects? ?If so, then you might want to know that UIX already has native data binding support for BC4J.
    Having said that, I am not sure if you can combine XSQL and UIX tags. I shall verify this and let you know.
    Thanks
    -Kishore
    JDev Team

  • Error when running XSQL Page

    I've just installed JDeveloper and when I try to run any XSQL Page (i've tried about 10 different ones) I get this same trace with the same File Not Found error at the end. I'm sure it's some kind of configuration problem, but I don't where to fix this. Please help. Here's the trace:
    "C:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\bin\javaw.exe" -mx50m -classpath
    "C:\Program Files\Oracle\JDeveloper 3.1\myprojects\WebProvis_working\output\_pages;
    C:\Program Files\Oracle\JDeveloper 3.1\myprojects\WebProvis_working\output;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\ojsp.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\ojc.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\jswdk-1.0.1\lib\servlet.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\webtogo.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\xmlparser.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\jbcl2.0.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes12.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\connectionmanager.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib;
    C:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes111.zip;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\oraclexsql.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\oraclexmlsql.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\xmlparserv2_2027.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\lib\xmlparserv2.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\jswdk-1.0.1\lib\servlet.jar;
    C:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\lib\rt.jar" oracle.jdeveloper.debugger.ServletMain WebProvis_working\xsqltest.xsql
    "C:\Program Files\Oracle\JDeveloper 3.1\myprojects\"
    "C:\Program Files\Oracle\JDeveloper 3.1\lib"
    log3: java.io.FileNotFoundException: C:\Program Files\Oracle\JDeveloper 3.1\myprojects" C:\Program\WebAppRunner.html
    (The filename, directory name, or volume label syntax is incorrect.)
    void java.io.FileOutputStream.open(java.lang.String)log3:
    void java.io.FileOutputStream.<init>(java.lang.String, boolean)log3:
    void java.io.FileOutputStream.<init>(java.lang.String)log3:
    void oracle.jdeveloper.debugger.ServletDebugger.showErrorPage(java.lang.Exception)log3:
    void oracle.jdeveloper.debugger.ServletDebugger.startListening()log3:
    void oracle.jdeveloper.debugger.WebServerThread.run()log3:
    null

    To use XSQLServlet with Microsoft Personal Web Server, you'll need to install a servlet engine that works with PWS. One with which XSQL Servlet has been tested is the ServletExec 2.2 and ServletExec 3.0 from New Atlanta (http://www.servletexec.com/). Others are available, too. Perhaps "Resin" from Caucho technologies as well (http://www.caucho.com).
    This means the XSQL Pages XML/XSLT publishing framework, along with a JDBC driver, will be running on your NT box, connecting to the database on your Unix box.
    For JDeveloper, it sounds like you haven't properly configured the name of your database machine, its SID, or the port on which its connection listener listens on.

  • XSQLActionHandler extracting XML from ViewObject not displaying on XSQL pag

    I have the following XSQLActionHandler for a STRUTS project which is supposed to extract the XML from a view object. When I call this from a xsql page I get nothing. I have examined the Node (n) and have seen that it does get XML but after I assign it to root nothing shows up on the XSQL page. Any ideas about what might be wrong?
    package XSQLActionHandler;
    import oracle.xml.xsql.XSQLActionHandlerImpl;
    import oracle.xml.xsql.XSQLServletPageRequest;
    import oracle.xml.xsql.XSQLPageRequest;
    import org.w3c.dom.Node;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletContext;
    import oracle.jbo.html.BC4JContext;
    import oracle.jbo.ViewObject;
    import oracle.jbo.XMLInterface;
    import oracle.xml.parser.v2.XMLNode;
    import oracle.jbo.html.databeans.XmlData;
    public class ActionHandlerTestVO extends XSQLActionHandlerImpl {
    public void handleAction(Node root) {
    XSQLServletPageRequest xspr = (XSQLServletPageRequest)getPageRequest();
    HttpServletRequest request = xspr.getHttpServletRequest();
    BC4JContext context = BC4JContext.getContext(request);
    XSQLActionHandlerModuleImpl appmod = (XSQLActionHandlerModuleImpl) context.getApplicationModule();
    ViewObject vo = context.getApplicationModule().findViewObject("DisciplineView1");
    Node n = (Node) vo.writeXML(1, XMLInterface.XML_OPT_ALL_ROWS);
    root=n;

    You need to append your generated content as a child of "root".
    It's best practice if you call adoptNode() on it first before appending it.
    Like this:
    XMLDocument rootDoc = (XMLDocument)root.getOwnerDocument();
    rootDoc.adoptNode(n);
    root.appendChild(n);

Maybe you are looking for