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);

Similar Messages

  • Extracting xml from BLOB and display on the Browser on the fly using xslt

    HI All,
    I am storing my xml file in BLOB in oracle database.
    Now in my java-jsp application, I want to display this xml file, by extracting from BLOB in a formatted/html way...( XSLT/CSS Style) on the fly.. means without storing it as a .xml file.
    Pl. guide me...
    Thanks in advance.
    Sandeep Oza

    First, can you get an InputStream that allows you to read the XML from the BLOB?
    If you can, then simply get a Transformer object for your XSLT, then calltransform(new StreamSource(yourInputStream), new StreamResult(resp.getOutputStream()));Since you won't be writing any HTML for this, there's no point in putting it in a JSP, either. A servlet would be more suitable.

  • Data From Query not Displayed on Public Page

    Hi all,
    I just created a page which has a dynamic portlet that runs a query to display some data. Now I recently made this page public which means that anyone can basically access this page from the outside and not have to login. However, the data does not seem to come up after I access this page on a browser even though the banner comes up fine!! I made the table that the dynamic portlet accesses public. Is there something that I may be missing here? THanks.

    Well I went to the grant access tab and there is no make portlet accessable to public. The only place to make a component accessible to public is when your editing a page. The only options when you click on the Grant Access Tab is 1) Publish To Portal and 2) Inherit Previleges From Application.

  • "From" presence not displaying in Outlook 2010

    I've been working on a software product aiming presence and im integration with Microsoft Outlook using IMessenger API.
    Integration works as expected with Outlook 2013. However, the presence indicator of the
    "from" or sender does not display in Outlook 2010. The to, cc and bcc fields all display presence properly. In Outlook 2013 however, all of the from, to, cc and bcc fields display presence.
    There is a similar discussion for Outlook 2013 on:
    http://social.technet.microsoft.com/Forums/office/en-US/a2500fec-fc3f-4295-bbe3-7620876a2d24/from-presence-not-displaying-in-outlook-2013
    My problem is similar to this one except that I've the same problem with Outlook 2010 and I don't have this problem with Outlook 2013. It may be resolved in Outlook 2013 with a hotfix I don't know. Does anybody have the same issue and have a fix or workaround
    for this situation? I have latest updates for Office 2010 already.
    A strange thing is that when I set the registry value HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Common\IM\TurnOffPresenceIcon to 1, presence indicators are disappear from contact names as expected, however when I hover over the sender it
    displays sender's presence correctly on tooltip. So integration seems ok when I look at this.
    when I set the registry value HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Common\IM\TurnOffPresenceIcon to 2, presence indicators are disappear from both contact names and tool tips as expected.
    when I set the registry value HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Common\IM\TurnOffPresenceIcon to 0, presence indicators are appear for contacts in to, cc, and bcc fields except "from" field, which is quite strange. After
    I move around between messages, some of the sender's presence indicators starts displaying.
    Does anybody know why the presence indicator is not displaying consistently for the "sender" contact in Outlook 2010 when TurnOffPresenceIcon has value 0? Does anybody have the same issue and have a fix or workaround for this situation?

    Hi,
    There is another registry value named TurnOffPresenceIntegration
    which also have an effect on the presence indicator, please find the
    Key in: HKEY_CURRENT_USER\software\microsoft\Office\14.0\Common\IM
    or Policy Key: HKEY_CURRENT_USER\software\Policies\microsoft\Office\14.0\Common\IM
    and then check if the key value is set to 0.
    For more information, please refer:
    http://support.microsoft.com/kb/2726007
    Regards,
    Steve Fan
    TechNet Community Support

  • How to Extract Data From Lotus Notes in BI 7.0

    Hi,
    I need to <b>Extract Data From Lotus Notes</b>.
    Is it possible to create source system For Lotus Notes (Like we creating For R/3,Oracle,Flat Files etc) then we can Extract the Data ! or
    I need to Download the Data in .csv File then Extract the Data !
    really appreciate your comments and surely you can get points too...
    Thanks in advance
    prasanna

    Hi,
    What type of data do you want to extract from lotusnotes. .?
    regards,
    Mohan

  • Safari not displaying some web pages properly why?

    I have been finding of late that safari does not display certain web pages properly. i.e.: text overlaps other text  and is not formatted properly. This seems to have become more common lately. Even Apple's own apple info page does not display properly. Could this be a setting in safari that I have messed up somehow?

    Go step by step and test.
    1. Delete Cookies
        Safari > Preferences > Privacy > Cookies and other website data:
        Click the “Details” button.
        Remove all cookies except from Apple, your internet service provider and banks.
    2. Safari > Preferences > Extensions
        Turn off Extensions if any and launch Safari again to test.
        Turn on those one by one and test.
    3. Delete Caches.db
        Close all windows and quit all applications.
        Hold "option" key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the dropdown.
        Library > Caches > com.apple.Safari > Caches.db
        Right click the Caches.db file and select "Move To Trash.
        Close windows and relaunch Safari.
    4. Empty Caches
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        Develop menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    5. Temporarily  turn off  Safari iCloud sync and test.
         System Preferences > iCloud
         Uncheck the box beside “Safari” and test.

  • Some PDF files and other emails do not display the whole page. Is there a way to change that?

    Some PDF files and other emails do not display the whole page. Is there a way to change that?

    If an app does not behave as expected, try closing the app completely and reboot the iPad. It appears as though you have the original iPad. It helps if you list your iPad model and the iOS that you are running.
    Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button twice.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • URL parameter value with : not displayed correctly on page

    Hi,
    I am working on a page with an interactive report.One of the report columns is hyperlinked to another page (Delete Page).This link passes an id and a title to the Delete page such that its displays a confirmation message to the end user before actually performing the delete.If the title contains a ":" the text after the ":" is not displayed on the page (albeit visible in the URL on the top)
    Is this because the ":" seperates parameters in an APEX URL and therefore the text after the ":" is taken as the next URL parameter?
    How can we solve this problem?
    Regards,
    Priya Jetley

    Hi
    Yes - Apex will see the ":" as a parameter separator and will ignore everything after any that exist in the "with these values" parameter at the end of the url.
    You can get around this in two ways:
    1 - Escape your title - replace ":" with "%3A" in your sql statement
    2 - Do not pass the title in the link but use a computation on the delete page to retrieve this value for display
    Andy

  • Dreamweaver not displaying my home page.

    For some strange reason Dreamweaver not displaying my home page. However it will display all other pages on the site. Does anyone know why this is happening?

    Because you have made an error. If you want to share the error with us please post a link to your site.
    Gramps

  • My pdf files do not display the full page on Creative Cloud (side of pages missing)

    Hello
    My pdf files do not display the full page on Creative Cloud (side of pages missing).
    Does anyone else have this problem?
    Thanks

    Creative Cloud is the process used to download and install programs... which program are you using?
    If Acrobat, http://forums.adobe.com/community/acrobat may be a better place to ask

  • XML Publisher Report not displaying Chart/Graph in Excel Output

    Hi All,
    We are currently on Oracle EBS 11.5.10.2
    I am facing an issue with XML Publisher based report when i try to fetch the output in Excel.
    We have created an RTF in which i have embedded a graph. While viewing the output in PDF everything seems to work fine.
    however when i try to run the report with output as Excel the Graph is not displayed.
    Can you please let me know if i missed anything.
    Also it would be very helpful if someone can tell me how to get the output of Excel in .XLSX format.
    I have seen in various forums that you need to select the output type as Excel 2007, but i am not getting any such option while submitting the report.
    I am on EBS version 11.5.10.2 do we need to install any patch to get the output option.
    Regards,
    Sandeep

    Hi,
    Check this links that might help you..
    https://forums.oracle.com/thread/1018488
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    Here the Exact solution from Oracle
    In the XML PUBLISHER ADMINISTRATOR Resp..
    Click the administration..
    then Click HTML Output
    Then in the Base Image URI Give the url of your application for example
    http://Test.Test.com:8000/OA_MEDIA/
    And then
    Image File Directory give this as per your application setup
    /u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
    Thanks & Regards
    Srikkanth.M

  • Extract XML from an XML File

    Hi All,
    I have an xml file from which data has to be extracted and inserted into table. XML file looks like this..
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE labels SYSTEM "label.dtd">
    <labels FORMAT="Harvest Label for Lot Project" QUANTITY="1" PRINTERNAME="PFP3400E006" JOBNAME="JA272017">
    <label>
    <variable name= "ITEM">PM191_JTEST</variable>
    <variable name= "ITEM_DESC">6 Pack Blue Assembled 2004 JTEST</variable>
    <variable name= " LOT ">ja28-10</variable>
    <variable name= "QUANTITY">1</variable>
    </label>
    </labels>
    In the above xml, if i remove <!DOCTYPE labels SYSTEM "label.dtd"> and use the below query, I am able to get the details.
    SELECT EXTRACTVALUE(VALUE(x), 'labels/@_FORMAT') format
    ,EXTRACTVALUE(VALUE(x), 'labels/@_QUANTITY') QUANTITY
    ,EXTRACTVALUE(VALUE(x), 'labels/@_PRINTERNAME') PRINTERNAME
    ,EXTRACTVALUE(VALUE(x), 'labels/@_JOBNAME') JOBNAME
    FROM (SELECT XMLTYPE
    ('<?xml version="1.0" encoding="UTF-8" standalone="no"?> <labels FORMAT="Harvest Label for Lot Project" QUANTITY="1" PRINTERNAME="PFP3400E006" JOBNAME="JA272017"> <label> <variable name= "ITEM">PM191_JTEST</variable> <variable name= "ITEM_DESC">6 Pack Blue Assembled 2004 JTEST</variable> <variable name= " LOT ">ja28-10</variable> <variable name= "QUANTITY">1</variable> </label> </labels>' ) xml
    FROM DUAL),
    TABLE(XMLSEQUENCE(EXTRACT(xml, 'labels'))) x
    But <!DOCTYPE labels SYSTEM "label.dtd"> tag is there means then i am getting error as
    Invalid resource handle or path name "/label.dtd"
    Please let me know how we can parse the xml and insert into table. OR how can i remove <!DOCTYPE labels SYSTEM "label.dtd"> tag and process it further.
    Thanks and Regards,
    Mahesh
    Edited by: magu on Sep 2, 2009 3:15 PM
    Edited by: magu on Sep 2, 2009 3:16 PM

    I don't understand why the DOCTYPE is in the XML, but it appears that Oracle is trying to resolve label.dtd to a registered resource. As you discovered, it may be easier to remove the DOCTYPE from the XML then try to register the label.dtd resource within Oracle. To do this, some options are
    - Use the REPLACE command
    - treat the data as a CLOB and instr/substr to build a new clob without the DOCTYPE tag in it.
    - Use the REGEXP_REPLACE command
    Also, if your DB version supports XMLTable, here is the way to do it with that.
    SELECT *
      FROM XMLTABLE('/labels'
                    PASSING XMLTYPE('<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <labels _FORMAT="Harvest Label for Lot Project" _QUANTITY="1" _PRINTERNAME="PFP3400E006" _JOBNAME="JA272017">
         <label>
              <variable name="ITEM">PM191_JTEST</variable>
              <variable name="ITEM_DESC">6 Pack Blue Assembled 2004 JTEST</variable>
              <variable name=" LOT ">ja28-10</variable>
              <variable name="QUANTITY">1</variable>
         </label>
    </labels>
                    COLUMNS
                    format    VARCHAR2(15) PATH '@_FORMAT',
                    quantity  VARCHAR2(15) PATH '@_QUANTITY',
                    printername  VARCHAR2(15) PATH '@_PRINTERNAME',
                    jobname  VARCHAR2(15) PATH '@_JOBNAME');

  • Extracting XML from Pdf form

    There is an industry standard pdf form with an underlying XML schema which can be opened in Adobe reader.
    The form has a custom button on Page 2  called "export" which can be manually clicked to export the XML file.
    We will have hundreds of these forms. How would I automate the extraction of this XML document?
    I would prefer to just write a simple script and extract out the xml to a file folder
    Thanks for your help.

    Thanks Patrick.
    We are thinking about using a third party native Java library to do this (http://www.qoppa.com/pdffields/jpfindex.html). I was hoping we could use acrobat reader, since everyone has it!
    Here are a few more things.
    1. We are an Software Vendor that sells our solutions - our software solutions need to extract the xml from pdf. We have a java based program that parses this xml and does stuff with it.
    2. Obviously, we would need to be able to redistribute whatever solution we use to extract the xml from pdf.
    3. Can Acrobat Professional batch mode be executed from Java?
    4.. If so, Instead of distributing a full blown Acrobat Professional or requiring customers to buy it,  is there a library that Adobe provides that we could repackage and ewdistribute? If so, can you send me some pointers on where I could find what those libraries would be and how much would they cost for each distribution we do.
    5. If no, are you familiar with qoppa or do you have recommendations on any other third party libary for Java?
    Thanks a bunch!

  • "From" presence not displaying in Outlook 2013

    When running the Lync 2013 client, the presence indicator of the "From" or sender does not display in Outlook 2013.  The cc, bcc & to fields all display presence properly.
    When I close the Lync 2013 client and the launch the Lync 2010 client, the sender's or "From" presence displays properly. 
    We are currently running Lync 2010 servers in our environment.
    Just wondering if anyone else has noticed this issue?

    I have certainly come across this behaviour with outlook 2013 against Exchange 2007.
    How to repro the Issue?
    Open an email in Outlook 2013 connected to Exchange
    2007 in cached Mode. Sender of the email has empty personcard. 
    With Outlook 2013, users are not able to see GAL data for the
    sender of emails,
    Work around seem to be Using online mode instead of cached mode.
    There is a outlook fix planned for this issue however unsure on the Release schedule
    Hi Prasanth.  It's now the end of May.  Outlook 2013 went RTM about six months ago and GA about four months ago and this issue is still not fixed.  Are Microsoft still working on a fix or have they given up on it and turned their back on their
    users ?  
    I just installed Office 2013 + all MS updates and am very disappointed as Outlook 2013 is functionally inferior to 2010 because of this for us.  I work for a large organisation and this would hold back Office 2013 rollout.
    -- huddie "If you're not seeking help or offering it, you shouldn't be here."

  • Tiffs from camera not displaying preview

    My Panasonic DMC-FZ3 camera takes each photo as both a tiff and a jpeg (it uses the jpeg for display on its built-in lcd). The Finder and Apple apps are having a problem with the tiffs (the jpegs are fine). The finder does not display a preview, and the creation date is blank (could this be the problem?). Any attempt to open the files in Preview or import them into iPhoto gives me an error message saying that the files are either unsupported or corrupted. When I used the camera in October there was no problem with the tiffs created by this camera.
    The files open fine in Photoshop, Graphic Converter, several other graphics apps, and even Camino and Firefox. If I edit the files and re-save in one of these other programs, the files will then display a preview, open in Preview, and import into iPhoto, but I shouldn't have to do this time consuming intermediate step.
    I do not believe this is a problem with the camera. I pulled out an old SD card with photos over 1 year old that had imported fine last November, but I got the error message when trying to import them this time.
    I searched these forums and found others with a similar problem, but none of the advice in those threads worked for my issue. I have tried changing the file name, repairing permissions, changing ownership on the library, and running the daily, weekly and monthly unix maintenance scripts. I even reinstalled iPhoto 5.0.4, but no luck.
    I think the problem must be deeper than that, because Preview and Safari also refuse to open the tiffs. With that in mind, I ran the 10.4.3 combo updater, but still no go.
    Any suggestions?
    PB G4 12 1GHz DVI   Mac OS X (10.3.7)  

    My camera doesn't do RAW, just jpeg and tiff.
    I doubt the files are too large. The tiffs are about 8.5mb each, not overly large at all. The 16 bit question doesn't explain why the OS, Preview, and iPhoto had no problems just 4 months ago.
    Another poster here traced the problem to OS 10.4.3. He thinks the .4.3 update broke something in the tiff handling ability. I wonder if there is an older library component I could import that would fix this?

Maybe you are looking for

  • Error when executing the webr template  in Bi 7.0

    Hi, When I exceute my webtemplate in BI 7.0 I am getting the following error A pop up block is activated .This prevents distrubted session management from functioning correctly. the WEb Application  will therefore be ended.check teh sap note 919196 D

  • Original ADC 22" Cinema Display Works w/new MBP, doesn't with older one

    I have two MacBook Pros. One is from late 2007. Core 2 Duo, max 3 gigs of RAM, non-unibody. The second is from late 2009. Unibody, max 8 gigs RAM, etc. I also have two Apple Cinema Displays. One is 22", ADC. The other is 23", also ADC. I have ADC->DV

  • How can I format a movie file so it plays on FF3.6? my mp4 files are blocked due to a quicktime issue.

    Creating a landing page for a client with embedded video. She prefers not to embed a YouTube video on her site. Is there a way I can embed an mp4 file in her site so that it will play in firefox 3.6? Now it is trying to launch quicktime, which firefo

  • Change material type - vendor stock

    material A is setup as semi-finished but it should be finished.  unfortunately vendor stock exists so there is an error when using MMAM.  how can you change the material type to a finished good?  i think there was a oss note explaining how to tempora

  • Microsoft 2011 on macbook pro doesn't work

    i wanna use my MS word but when i clicked on the icon.. it just bounces and nothing happens.. i tried reinstalling it but nothing happened (i didnt delete my MS before i reinstall.. i just installed it) i tried restarting my PC but naaa nothing happe