Using activecontent.js along with xml

I am calling a xml file along with my swf. how do i properly
code when using activecontent.js
my file location:
/user/flash.swf?dataSource=file.xml
I got the noscript correct, but not sure about the script
part.
If this belongs in the DW section please move.

A custom XSQL action handler can do:
getPageRequest().getPostedDocument()
to get hold of the posted XML content. There's no other way to reference it as a parameter in a page. You could write a custom action handler that returns the contents of the posted document as a string like this:
import oracle.xml.xsql.XSQLActionHandlerImpl;
import oracle.xml.parser.v2.XMLNode;
import org.w3c.dom.*;
import java.io.*;
public class PostedXML extends XSQLActionHandlerImpl {
private static final String RESULTELT = "PostedXML";
public void handleAction(Node root) {
try {
Document pd = getPageRequest().getPostedDocument();
if (pd != null) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
((XMLNode)pd).print(pw);
addResultElement(root,RESULTELT, sw.toString());
addResultElement(root,RESULTELT,null);
catch (Exception e) {
addResultElement(root,RESULTELT,null);
}Then when you use the custom action element in an XSQL page like this:
<xsql:action handler="PostedXML"/>
Your XSQL data page will end up with:
<PostedXML>...posted-xml-doc-as-string-here...</PostedXML>

Similar Messages

  • .tmp files genrated along with XML files

    Hi all,
    Here my Interfaces are type of RFC- XI - FTP.
    these are running successfully past long time and creating XML files in the target directory of FTP aplication system. Along with XML files this time abnormally .tmp files were generated in the Target directory of FTP application system. This was occured only one time few days back.
    The generated XML files in target FTP system as usually read by Application system and processed in the sytem.
    And tmp files generated are as XI_ftp_XI_ftp_0c200300-704c.tmp
    could you all please let me know what could be the reason for happening this like generation of .tmp files abnoramally in Target FTP application system.
    Thanks in advance...
    Regards,
    Siva

    Hi, thanks for reply.
    The Write mode is "Use temporary file"
    But we have not got these .tmp files earlier and we have not mentioned any temporary file name sceme too.
    Could any body please explain will .tmp files are generated randomly?
    If i keep 'Directly' mode, will it keeps only the XML files in target directory?
    Please advise.
    Thanks,
    Siva

  • As. Fashion designer can I use illustrator cc along with photoshop cc

    As  a fashion designer can I use illustrator cc along with photoshop cc
    @is illustrator cc compatible with photoshop cc?

    Thank you so much for answering my question. It was a great help.
    SIncerely,
    Gail Sarasohn

  • Using Supplier Scheduling along with eCommerce; how does this fit into ASCP

    Hi,
    In Oracle 11i we are using Supplier Scheduling along with eCommerce to publish our MRP forecast via EDI 830/DELFOR. We use autoScheduling which requires MRP and in 11i we run MRP, so it all works well.
    Now we are moving to 12i and using ASCP (Advanced supply chain planning) and I understand that we do not need to run MRP any more. ASCP in conjunction with PS (Production Scheduling) will do the trick.
    Given this situation how can I use Supplier Scheduling / eCommerce to publish EDI 830/DELFOR?
    Appreciate any input in the right direction.
    Thanks!!!

    any body...some body...please help!!!

  • I had been using iMessage all along with my friend who is using an iPhone 6. I choose to send a sms to him as I do not have any connection, after that there is no way I can send him an iMessage again. Can anyone advise how do I switch back?

    I had been using iMessage all along with my friend who is using an iPhone 6. I choose to send a sms to him as I do not have any connection, after that there is no way I can send him an iMessage again. Can anyone advise how do I switch back? I had tried resetting the network setting, toggling off the sms but to no avail.
    Thank you.
    Regards

    What do you mean you choose to send him an SMS because you don't have any connection. What kind of connection? Delete the thread with that individual that you sent via SMS, and as long as you have iMessage activated on your device and your friend has an active data connection, it should recognize that and send as an iMessage. Another scenario is to have the friend send you a message that you can respond to.

  • Error message when using Spry Data set with XML

    Hi,
    I have what i see as a big problem, might just be me being
    dumm, but here we go.
    When I try to use the feature of spry XML Data Set and insert
    spry table I get error message when trying it in IE 7.
    There are even a problem when I use fireworks automated slide
    show function, where you can choose to use the Spry/XML gallery
    feature.
    The error message I get everytime (incl the auto gallery in
    fireworks) is:
    The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "div" doesn't have an attribute: "spry:region" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    and so on.
    What´s wrong?!

    Hello barvid,
    Ok, let's take each problem step by step:
    1. The first error you see in the browser: " Exception while
    loading ..." normally appears when you try to load files that are
    not permitted by the browser security model. This means the XML
    file you try to load is located on a different server than your
    HTML which is not allowed. The browser is not permitting to load
    any files that are not in the same domain as the current page
    because of the complex security risks. You'll have to either get
    the XML file from its original location and save it in your website
    or use a proxy on your web server that should request that file
    from the external server and send it to the browser as an XML from
    the same domain as the HTML origin.
    1.2 The "Exception while loading ..." error you see is a
    generic error and my previous advise is based on my experience. In
    case this is not your scenario you'll have to open the SpryData.js
    and around line 112 you'll see the following code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + e);
    Please change this line with the following line of code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + (e.message?e.message:e));
    to obtain a more verbose error message that may clarify the
    reasons of your errors.
    2. The problems you describe are not browser errors but they
    are w3c validation errors. At this point the XHTML standard allows
    every application that define custom namespace attributes to also
    link a DTD to the page so the page to continue to be valid.
    Unfortunately at this point this feature is not correctly supported
    by the FF and IE so we wrote an articles about how you should
    link
    the Spry DTD to your page so the validator understand the
    custom attributes Spry use. You'll find inside the full description
    of the problems and all the technical details you'll need to know
    to solve this issue.
    Regards,
    Cristian

  • Send a digital signature along with xml file

    My requirment is that I am to send a file along with digital signature,authorizing the envoys, which are conducted by the algorithm MD5
    (cryptographic algorithm reduction of 128 bits) and RSA PCKS1. How to send it and at receiver end(SOAP Adapter) how to authenticate it?
    What is  algorithm MD5 (cryptographic algorithm reduction of 128 bits) and RSA PCKS1?

    Hi Jaideep,
    do chk this links
    Using Digital Signatures in XI
    How to use Digital Certificates for Signing & Encrypting Messages in XI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9727ea90-0201-0010-be8e-b649280fe6ff
    Regards
    Sampath

  • Using aggregate function along with for all entries: sugest alternative

    My requirement:
    For each record in i_vbap for which 'charg' is initial, need to determine batch using the following logic:
    For the material (MATNR) in i_vbap, select the batch (CHARG) which has the largest (MAX) unrestricted inventory quantity (CLABS) from MCHB table.
    How do I implement this logic without using select statement inside a loop as I cannot use MAX ( CLABS ) function along with FOR ALL ENTRIES in a SELECT?
    Suggest an alternative.

    For each record in i_vbap for which 'charg' is initial ,fetch all the existing 'clabs' value.
    [ Remember to include all the key fields in selct ]
    Sort the new table .
    Put a loop,use at end of 'charg' and append to another table. U get ur solution
    I think this should be the most economic way to do so.

  • Can I still use Internet Explorer along with Mozilla Firefox

    Can I keep both search engines installed and use them without causing any problems to my computer
    <sub>Edit by a Moderator. I changed title from <br /> ''can i still use exporer along with mozilla'' to <br />Can I still use Internet Exp'''l'''orer along with Mozilla '''Firefox'''

    Hi Michael,
    I hope you are managing to use Firefox ok.
    Some helpful terms
    * [https://simple.wikipedia.org/wiki/Web_browser Browser] <-- clickable link - often blue in colour <br /> More detail https://en.wikipedia.org/wiki/Web_browser
    * [https://simple.wikipedia.org/wiki/Hyperlink Link] <-- link <br />https://en.wikipedia.org/wiki/Hyperlink <-- different article
    * [https://simple.wikipedia.org/wiki/Search_engine Search Engine] <br />https://en.wikipedia.org/wiki/Web_search_engine
    * [https://simple.wikipedia.org/wiki/World_Wide_Web World Wide Web] vs [https://simple.wikipedia.org/wiki/Internet Internet]
    **I will leave it as an exercise for you to look up the ordinary English versions of ''www'' & ''Internet'' in en.wikipedia.org
    ** Note the linked articles are themselves full of links.
    Internet Explorer is a bit odd. Everyone would get it with Windows. Effectively almost the same thing would be used as the Windows Explorer on the computer and navigating the Web
    '''Did you find the Firefox Tour / Introduction ok ? '''
    * '''[[Get started with Firefox - An overview of the main features]]'''
    I make no apologies for posting a reply in very basic terms. It may not teach you much as you have already managed to find and post on '''[/questions/1008931 this]''' ''[https://simple.wikipedia.org/wiki/Internet_forum forum]'', but you or other readers of this question may find some of the links of use. We all need to begin somewhere, and following links is sometimes a useful method of learning.

  • When I set up my exchange account on iPad2 cameras always become disabled. What's the problem, can I use my cams along with using exchange mail?

    Can someone help me with this question? Why iPad 2 disables camera when I set up my Exchange mail account? How can I enable camera along with using mail?

    The iPad is not disabling the camera - the administrator for your Exchange account is. You need to go to the person who administers your Exchange account and ask them to lift the restriction on cameras in their Exchange system.

  • How do i use a flash gallery with xml file

    Hi there....
    I am trying to include a flash banner template i have downloaded into my webpage using dreamweaver CS5.
    the template comes with an XML file with it in which you can reference your own images etc..
    I understand how to inclued the Flash object into my webpage by insert-swf- and then navigating to the .swf file...
    what i am having trouble with is understanding how this refereces the XML file in the download pack as i cant find any references to it in the code??
    I am just getting the grey flash box with no images appearing when i hit play etc..
    sorry if this is a really silly question!!
    mart

    If you are using DW to insert the Flash, that could be the problem.  It is not reliable resource in that respect (my opinion, but a shared one). I normally only use Flash to create the code and copy/paste it into my html page.  Did you get an fla file with the set, and do you have Flash?
    What you should do is test the swf file by itself to make sure it works.   Normally you can link directly to the swf file to check that out.  Just type in the url to the swf file and see if it plays.  There may be some other setup required that maybe an accompanying set of instructions might explain.
    Also, if you have a link to the html file you uploaded, providing it here may help in getting things resolved.

  • Using BPEL console testing with XML attributes

    I'm having trouble with using an XML attribute in my BPEL process. When I put an attribute on my input element, the BPEL Console test page no longer works. Here's what I'm doing:
    I create a synchronous new BPEL project in JDeveloper using the default input and output XSDs, and add a simple assign to assign the input to the output. When I deploy this and look at it in BPEL console, I can see the input field and enter my value to test.
    Now I go back into JDeveloper and add an attribute to the input element, and then redeploy my process. Now when I go into BPEL console, the Initiate tab no longer has any field for me to enter my value. Clicking the XML Source radio button doesn't help either. (I also tried invoking the BPEL process web service through the app server control - same issue.)
    I'm using JDeveloper 10.1.3.3 with App Server 10.1.3.3.0. Does anyone know how to make the BPEL Console testing work with XSDs that contain attributes?
    Thanks,
    Skip

    A bit more info on this. It doesn't appear that the problem is limited to the console tester. I created another BPEL process which calls my original process, and attempted to set the attribute on the input using the Assign activity. JDeveloper generated this:
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:TestAttributes2ProcessRequest/client:input"/>
    <to variable="Invoke_1_process_InputVariable" part="payload"
    query="/ns1:TestAttributesProcessRequest/ns1:input"/>
    </copy>
    <copy>
    <from expression="'bob'"/>
    <to variable="Invoke_1_process_InputVariable" part="payload"
    query="/ns1:TestAttributesProcessRequest/ns1:input/@attribute1"/>
    </copy>
    </assign>
    As you can see this is mapping a variable into the /TestAttributesProcessRequest/input element and then attempting to set the attribute of that element to the value 'bob'. This compiles just fine but when this code is executed, this error occurs:
    Error in <assign> expression: <to> value is empty at line "87". The XPath expression : "" returns zero node, when applied to document shown below:
    oracle.xml.parser.v2.XMLElement@7efe7efe
    (Line 87 is query="/ns1:TestAttributesProcessRequest/ns1:input/@attribute1"/>)
    Is there something wrong with this generated code? Do I need to do some kind of custom code to set attributes, instead of using the graphical tools in JDeveloper?

  • Can't use UTF-16 encoding with XML Parser for Java v2.

    This is my XML Document:
    <?xml version="1.0" encoding="UTF-16" ?>
    <Content>
    <Title>Documento de Prueba de gestin de contenidos.</Title>
    <Creator>Roberto P     rez Lita</Creator>
    </Content>
    This is the way in which i parse de document:
    DOMParser parser=new DOMParser();
    parser.setPreserveWhitespace(true);
    parser.setErrorStream(System.err);
    parser.setValidationMode(false);
    parser.showWarnings(true);
    parser.parse(
    new FileInputStream(new File("PruebaA3Ingles.xml")));
    I've got this error:
    XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
    I am using the XML Parser for Java v2_0_2_5 and I am a little
    confused because the documentation says that the UTF-16 encoding
    is supported in this version of the Parser.
    Does anybody know how can I parse documents containing spanish
    accents?
    Thanks in advance.
    Roberto P     rez.
    null

    Oracle just uploaded a new release of V2 Parser. It should
    support UTF-16.
    Yet, other utilities still have some problems with UTF-16
    encoding. Seems we just
    have to wait this one out.
    BTW, I'm trying to use Japanese. We, also, have some problems
    with JServer.
    Roberto P     rez (guest) wrote:
    : This is my XML Document:
    : <?xml version="1.0" encoding="UTF-16" ?>
    : <Content>
    : <Title>Documento de Prueba de gestin de contenidos.</Title>
    : <Creator>Roberto P     rez Lita</Creator>
    : </Content>
    : This is the way in which i parse de document:
    : DOMParser parser=new DOMParser();
    : parser.setPreserveWhitespace(true);
    : parser.setErrorStream(System.err);
    : parser.setValidationMode(false);
    : parser.showWarnings(true);
    : parser.parse(
    : new FileInputStream(new File("PruebaA3Ingles.xml")));
    : I've got this error:
    : XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
    : I am using the XML Parser for Java v2_0_2_5 and I am a little
    : confused because the documentation says that the UTF-16
    encoding
    : is supported in this version of the Parser.
    : Does anybody know how can I parse documents containing spanish
    : accents?
    : Thanks in advance.
    : Roberto P     rez.
    null

  • Parsing Parameters Along with XML Data

    Is there a quick and dirty way of getting the "payload" XML data from an HTTP POST coming to an XSQL page as well as some extra parameters that describe the data, for example, a CRC code?
    A colleague has shown me Java code for "catching" the POST that deals with "heterogeneous data" and is quite involved. Is there a way I can accomplish the same "catch" using an XSQL page without calling out to a Java program? I combed the "Oracle XML Applications" book and couldn't find anything dealing with this topic.

    A custom XSQL action handler can do:
    getPageRequest().getPostedDocument()
    to get hold of the posted XML content. There's no other way to reference it as a parameter in a page. You could write a custom action handler that returns the contents of the posted document as a string like this:
    import oracle.xml.xsql.XSQLActionHandlerImpl;
    import oracle.xml.parser.v2.XMLNode;
    import org.w3c.dom.*;
    import java.io.*;
    public class PostedXML extends XSQLActionHandlerImpl {
    private static final String RESULTELT = "PostedXML";
    public void handleAction(Node root) {
    try {
    Document pd = getPageRequest().getPostedDocument();
    if (pd != null) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    ((XMLNode)pd).print(pw);
    addResultElement(root,RESULTELT, sw.toString());
    addResultElement(root,RESULTELT,null);
    catch (Exception e) {
    addResultElement(root,RESULTELT,null);
    }Then when you use the custom action element in an XSQL page like this:
    <xsql:action handler="PostedXML"/>
    Your XSQL data page will end up with:
    <PostedXML>...posted-xml-doc-as-string-here...</PostedXML>

  • Using tomcat 5 along with apache 2.2

    hi
    i am facing a strange problem
    i am trying to build a web application using servlets with tomcat 5 and apache 2.2 and i am using oracle 10g as the data base
    now when try to access the database from my pc it works fine but when i try to access it from other pc through lan its showing an exception
    i am using mod_jk connector to forward the servlets requests to tomcat.
    log file looks like this
    2009-02-01 00:04:07 StandardContext[manager]HTMLManager: init: Associated with Deployer 'localhost'
    2009-02-01 00:04:07 StandardContext[manager]HTMLManager: init: Global resources are available
    2009-02-01 00:04:07 StandardContext[manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
    2009-02-01 00:04:23 StandardWrapperValve[home]: Servlet.service() for servlet home threw exception
    java.lang.NullPointerException
    at Home.doGet(Home.java:26)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Unknown Source)
    please help me its my semister project
    thanking you

    ronit wrote:
    java.lang.NullPointerException
    at Home.doGet(Home.java:26)Some object reference at the mentioned line inside the mentioned method of the mentioned class is null while the code is trying to access/invoke it.
    The solution should be obvious: make sure that it is not null, or only access/invoke it when it is not null.
    That said, and apart from this specific problem, you should always be placing classes in packages. Not doing so is a bad practice and also asking for trouble.

Maybe you are looking for

  • All files taking a very long time to open - PS CS3

    No matter the file size or the file location (network or local) it consistantly takes 30 seconds or longer to open in PS CS3. This problem is new, the past week or so. No hardware or software changes have occured that I'm aware of that would have kic

  • Duplicate by RMAN

    Hi, on 10 gR2 can we duplicate from RMAN Backup using SET UNTIL TIME ? I mean for example can I duplicate from the backups of 22 of January (my backups from 22 of Jan and 23 , 24 until first of february are available ). If the backups are on tape sho

  • I can remember my restrictions password, and I need to get the App Store back.

    My App Store is gone. I heard that to get it back, you need to go into restrictions, but I forgot my restrictions password. I heard that at this point I should reset my ipad, but I need the restrictions password to do that. Is there another way to do

  • What is the problem in this podcast?

    i'm trying to include this podcast in itunes store http://www.smartoxide.com/itunes/albiol_fr.xml http://www.smartoxide.com/itunes/albiol_ca.xml but itunes don't reported me the problem, and not include in itunes stores, i don't understand! Please he

  • My iphone 5 stopped all sounds cant get it to ring or any sounds at all

    MY I 5 PHONE STOPPED RINGING ALL SOUNDS ARE GONE , I FLIP THE MUTE SWITCH AND TURN PHONE OFF I TRIED EVERY THING HOW CAN I GET SOUND BACK ?