How to RUN a XML file directly in JDeveloper

Can any one please suggest me for running a XML file directly in Jdeveloper?
I need the step how to do it

actually I am calling xsl inside my xml....
the XMl code
=================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="SfATranslation.xsl"?>
<SfAForm>
<SfAFormHeader>
<Name>ACM Maintain Code Table</Name>
<Notes></Notes>
<HeaderText>ACM Maintain Transaction Code Table</HeaderText>
<ItemID></ItemID>
<LogoImage>cpfb.gif</LogoImage>
<SubmitTo>FormAction.asp</SubmitTo>
<Title>Account Management</Title>
<TranslationRule>SfATranslation</TranslationRule>
</SfAFormHeader>
<SfASection>
<VisibilityRule></VisibilityRule>
<SfASectionHeader>
<Name>ACM - Maintain Transaction Code Table</Name>
<Notes>ACM Maintain Transaction Code Table</Notes>
<ItemID>TX Code</ItemID>
</SfASectionHeader>
<SfAComponent>
<VisibilityRule></VisibilityRule>
<SfAComponentHeader>
<Name>Code Table Information</Name>
<ItemID>A1</ItemID>
</SfAComponentHeader>
<SfAItem>
<Name>Scheme Code</Name>
<Type>SfA_Select</Type>
<VisibilityRule></VisibilityRule>
<Information>Select Scheme</Information>
<ItemID></ItemID>
<Required>*</Required>
<Value></Value>
<SfA_SelectOptions>
<Name>Education</Name>
<ItemID>EDN</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_SelectOptions>
<SfA_SelectOptions>
<Name>Housing</Name>
<ItemID>HU</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_SelectOptions>
<SfA_SelectOptions>
<Name>Investment</Name>
<ItemID>INV</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_SelectOptions>
</SfAItem>
<SfAItem>
<Name>Transaction Code</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>Enter Transaction Code</Information>
<ItemID>TXCode</ItemID>
<Required>*</Required>
<Value></Value>
</SfAItem>
<SfAItem>
<Name>Reason Code</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>Enter Reason</Information>
<ItemID>Reason</ItemID>
<Required>*</Required>
<Value></Value>
<ItemError>
<Name>Error Test</Name>
<ItemID>ER001</ItemID>
<Message>Please enter valid data . . .</Message>
<SupportLink>http://www.google.co.nz/</SupportLink>
</ItemError>
</SfAItem>
<SfAItem>
<Name>Description</Name>
<Type>SfA_Textarea</Type>
<VisibilityRule></VisibilityRule>
<Cols>60</Cols>
<Information>Enter Description</Information>
<ItemID>Description</ItemID>
<Required>*</Required>
<Rows>5</Rows>
<Value></Value>
</SfAItem>
<SfAItem>
<Name>Interest Computation</Name>
<Type>SfA_Checkbox</Type>
<VisibilityRule></VisibilityRule>
<Information></Information>
<ItemID>Interest</ItemID>
<Required></Required>
<Value></Value>
<SfA_CheckboxOptions>
<Name>Interest</Name>
<ItemID>IDInterest</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_CheckboxOptions>
</SfAItem>
<SfAItem>
<Name>Interest Information</Name>
<Type>SfA_Information</Type>
<VisibilityRule>IDInterest!='IDInterest'</VisibilityRule>
<BeginText>For information</BeginText>
<EndText>or look up admin manual</EndText>
<ItemID></ItemID>
<Link>http://www.google.co.nz/</Link>
<LinkLabel>see sss</LinkLabel>
</SfAItem>
</SfAComponent>
<SfAComponent>
<VisibilityRule>IDInterest!='IDInterest'</VisibilityRule>
<SfAComponentHeader>
<Name>Interest Calculation Applicable Dates</Name>
<ItemID>A2</ItemID>
</SfAComponentHeader>
<SfAItem>
<Name>Effective Start Date</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>dd/mm/yyyy</Information>
<ItemID></ItemID>
<Required></Required>
<Value></Value>
</SfAItem>
<SfAItem>
<Name>Effective End Date</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>dd/mm/yyyy</Information>
<ItemID></ItemID>
<Required></Required>
<Value></Value>
</SfAItem>
</SfAComponent>
</SfASection>
<SfAMenuHeader>
<MenuItem>
<Name>Account Management</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Asset Enhancement</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Common Biz Services</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Common Sys Services</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Operations</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>System Messages</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
</SfAMenuHeader>
<SfAButtonHeader>
<ButtonItem>
<Name>Save</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Update</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Deactivate</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Help</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Cancel</Name>
<ItemID></ItemID>
</ButtonItem>
</SfAButtonHeader>
</SfAForm>
The Xsl code
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="SfAForm">
<html>
<head>
<title>HP Smart Forms Demo</title>
          <link rel="stylesheet" href="../shared/css/useragentmanExample.css" type="text/css" media="all" />
          <link rel="stylesheet" href="../shared/css/visibleIf.css" type="text/css" media="all" />
          <link rel="stylesheet" href="../shared/css/style.css" type="text/css" media="all" />
          <script type="text/javascript" src="../shared/js/EventHelpers.js"></script>
          <script type="text/javascript" src="../shared/js/visibleIf.js"></script>
</head>
<body>
<xsl:apply-templates select="SfAFormHeader"/>
</body>
</html>
</xsl:template>
<xsl:template match="SfAFormHeader">
<xsl:variable name="tmpformID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpformName"><xsl:value-of select="Name"/></xsl:variable>
<xsl:variable name="tmpformAction"><xsl:value-of select="SubmitTo"/></xsl:variable>
<xsl:variable name="tmpformImage"><xsl:value-of select="LogoImage"/></xsl:variable>
<div id="stylized" class="myform">
<form id="{$tmpformID}" name="{$tmpformName}" method="post" action="{$tmpformAction}" class="visibleIf-disableIfInvisible">
<table>
<tr>
<td valign="top"><IMG src="{$tmpformImage}" ALT=""/></td>
<td valign="top" rowspan="1">
     <h1> <xsl:value-of select="Title"/> </h1>
     <p>
<xsl:call-template name="PreserveLineBreaks">
<xsl:with-param name="text" select="Notes"/>
</xsl:call-template>
</p>
     <!-- <xsl:apply-templates select="//SfASection"/> -->
</td>
</tr>
<tr>
     <td valign="top">
     <xsl:apply-templates select="//SfAMenuHeader"/>
     </td>
     <td valign="top">
     <xsl:apply-templates select="//SfASection"/>
     </td>
</tr>
<tr>
<td></td> <!--Blank cell below the menu-->
<td>
<p></p>
     <xsl:apply-templates select="//SfAButtonHeader"/>
</td>
</tr>
</table>
</form>
</div>
</xsl:template>
<xsl:template match="SfAMenuHeader">
<xsl:apply-templates select="MenuItem"/>
</xsl:template>
<xsl:template match="MenuItem">
<xsl:variable name="tmpappMenuHref"><xsl:value-of select="Href"/></xsl:variable>
<xsl:variable name="tmpappMenuTarget"><xsl:value-of select="Target"/></xsl:variable>
<xsl:variable name="tmpappMenuImage"><xsl:value-of select="Image"/></xsl:variable>
<a class="menulink" href="{$tmpappMenuHref}" target="{$tmpappMenuTarget}"> <xsl:value-of select="Name"/> </a>
<xsl:choose>
<xsl:when test="$tmpappMenuImage=''">
</xsl:when>
<xsl:otherwise>
<IMG src="{$tmpappMenuImage}" ALT=""/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfAButtonHeader">
<xsl:apply-templates select="ButtonItem"/>
</xsl:template>
<xsl:template match="ButtonItem">
<button type="submit"><xsl:value-of select="Name"/></button>
</xsl:template>
<xsl:template match="SfASection">
<xsl:variable name="tmpSectionVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpSectionVisibleRule=''">
<xsl:apply-templates select="SfASectionHeader"/>
<xsl:apply-templates select="SfAComponent"/>
</xsl:when>
<xsl:otherwise>
<span class="visibleIf" data-visibleif-rule="{$tmpSectionVisibleRule}"> <!--&&=AND ||==OR -->
<xsl:apply-templates select="SfASectionHeader"/>
<xsl:apply-templates select="SfAComponent"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfAComponent">
<xsl:variable name="tmpComponentVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpComponentVisibleRule=''">
<xsl:apply-templates select="SfAComponentHeader"/>
<xsl:apply-templates select="SfAItem"/>
</xsl:when>
<xsl:otherwise>
<span class="visibleIf" data-visibleif-rule="{$tmpComponentVisibleRule}"> <!--&&=AND ||==OR -->
<xsl:apply-templates select="SfAComponentHeader"/>
<xsl:apply-templates select="SfAItem"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfASectionHeader">
<h3 class="sectionID"> <xsl:value-of select="ItemID"/> </h3>
<h2 class ="sectionTitle"> <xsl:value-of select="Name"/> </h2>
<!-- <p> <xsl:value-of select="Notes"/></p> -->
<p>
<xsl:call-template name="PreserveLineBreaks">
<xsl:with-param name="text" select="Notes"/>
</xsl:call-template>
</p>
</xsl:template>
<xsl:template match="SfAComponentHeader">
<h3 class="questionCode"> <xsl:value-of select="ItemID"/> </h3>
<h3 class ="questionTitle"> <xsl:value-of select="Name"/> </h3>
</xsl:template>
<xsl:template match="SfAItem">
<xsl:variable name="tmpItemVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpItemVisibleRule=''">
<xsl:call-template name="processItem">
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<span class="visibleIf" data-visibleif-rule="{$tmpItemVisibleRule}"> <!--&&=AND ||==OR -->
<xsl:call-template name="processItem">
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="processItem">
<xsl:variable name="tmpID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemValue"><xsl:value-of select="Value"/></xsl:variable>
<xsl:variable name="tmpItemType"><xsl:value-of select="Type"/></xsl:variable>
<xsl:apply-templates select="ItemError"/>
<xsl:choose>
<xsl:when test="$tmpItemType='SfA_Select'">
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
          <select class="dropdown" name="{$tmpID}" value="{$tmpItemValue}">
          <xsl:apply-templates select="SfA_SelectOptions"/>
          </select>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Checkbox'">
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<div>
<xsl:apply-templates select="SfA_CheckboxOptions"/>
</div>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Radio'">
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<div>
<xsl:apply-templates select="SfA_RadioOptions"/>
</div>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Information'">
          <xsl:variable name="tmpLink"><xsl:value-of select="Link"/></xsl:variable>
          <span class="para">
          <xsl:value-of select="BeginText"/>
          <xsl:if test="$tmpLink!=''">
               <xsl:text> </xsl:text>
     <xsl:value-of select="LinkLabel"/>
     </xsl:if>
          <xsl:text> </xsl:text>
          <xsl:value-of select="EndText"/>
          </span>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Textarea'">
     <xsl:variable name="tmpRows"><xsl:value-of select="Rows"/></xsl:variable>
<xsl:variable name="tmpCols"><xsl:value-of select="Cols"/></xsl:variable>
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<textarea class="text" rows="{$tmpRows}" cols="{$tmpCols}" name="{$tmpID}"><xsl:value-of select="Value"/></textarea>
</xsl:when>
<xsl:otherwise>
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
          <input class="text" type="text" name="{$tmpID}" id="{$tmpID}" value="{$tmpItemValue}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="ItemError">
<xsl:variable name="tmpSupportLink"><xsl:value-of select="SupportLink"/></xsl:variable>
<!--Add error message if it exists. Add below the data entry -->
<!-- <label><xsl:text>Error: </xsl:text><xsl:value-of select="ItemID"/></label> -->
<label></label>
<xsl:choose>
<xsl:when test="$tmpSupportLink=''">
<span class="error"><xsl:value-of select="Message"/></span>
</xsl:when>
<xsl:otherwise>
<a class="error" href="{$tmpSupportLink}" target="_blank"><xsl:value-of select="Message"/></a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfA_CheckboxOptions">
<xsl:variable name="tmpItemOptionID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemOptionValue"><xsl:value-of select="Value"/></xsl:variable>
<xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
<xsl:variable name="tmpItemOptionMultiple"><xsl:value-of select="Multiple"/></xsl:variable>
<input type="checkbox" name="{$tmpItemOptionID}" value="{$tmpItemOptionID}">
<xsl:if test="$tmpItemOptionSelected='Y'">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
<xsl:choose>
<xsl:when test="$tmpItemOptionMultiple='Y'">
<span class="checklabelMultiple"><xsl:value-of select="Name"/></span>
</xsl:when>
<xsl:otherwise>
<span class="checklabelSingle"><xsl:value-of select="Name"/></span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfA_RadioOptions">
<xsl:variable name="tmpItemOptionID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemOptionValue"><xsl:value-of select="Value"/></xsl:variable>
<xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
<xsl:variable name="tmpItemOptionMultiple"><xsl:value-of select="Multiple"/></xsl:variable>
<input type="radio" name="{$tmpItemOptionID}" value="{$tmpItemOptionValue}">
<xsl:if test="$tmpItemOptionSelected='Y'">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
<xsl:choose>
<xsl:when test="$tmpItemOptionMultiple='Y'">
<span class="checklabelMultiple"><xsl:value-of select="Name"/></span>
</xsl:when>
<xsl:otherwise>
<span class="checklabelSingle"><xsl:value-of select="Name"/></span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfA_SelectOptions">
<xsl:variable name="tmpItemOptionValue"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpItemOptionSelected=''">
          <option value="{$tmpItemOptionValue}"><xsl:value-of select="Name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$tmpItemOptionValue}" selected="{$tmpItemOptionSelected}"><xsl:value-of select="Name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="PreserveLineBreaks">
<xsl:param name="text"/>
<xsl:choose>
<xsl:when test="contains($text,'&#xA;')">
<xsl:value-of select="substring-before($text,'&#xA;')"/>
<xsl:call-template name="PreserveLineBreaks">
<xsl:with-param name="text">
<xsl:value-of select="substring-after($text,'&#xA;')"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

Similar Messages

  • How to run a batch file

    Hi,
    How to run a batch file from Oracle. Is it possible directly from PLSQl, or should I write the java code.
    Oracle Version: 10g 2.0.1.0.
    Thanks in advance
    Rizly

    Hi,
    My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
    I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
    I can keep the JAR FIle either in the Oracle Server or in the Application Server.
    The Java program is to convert XML Format FIle to PDF and MS Word format.
    Oracle Version : 10g 2.0.1.0.
    Thanks in advance
    Rizly

  • How to Merge multiple XML  files in one file ( Env: XML Publisher 5.6.2)

    All,
    I have recently started working on XML publisher and have developed 3 reports in last 2 days using XML Publisher and integrating them with Concurrent programs.
    This is a great tool.
    I have got another requirement, where i need to use xml file generated by multiple run of same report with various parameters and then merge all xml file to a single report. Developing the whole custom process will take very long time and sure will have bugs in it. Instead i was thinking to use xml file generated by Oracle report itself.
    Report "US Gross to net summary" generates xml output in standard output directory and then show output in PDF file. I have 7 such file generated for each payroll. I want to merge output of xml into a single xml so that i can create single report having data from all 7 xml files showing me All payroll output in a single report.
    Can someone please guide me , how can i read xml file data from the output directory of a seeded concurrent program and how to manipulate data in it.
    Thanks
    Ankur

    Hi Tim,
    Thanks for replying. I have looked for "PDFBookBinder class" in xml publisher user guide for ver 5.6.2. I didn't get any reference of this text. Can you please guide me to a tutorial/link where i can get more information about this class.
    Also, i originally thought of similar to your second logic, as my design basis. Oracle process generates the xml file in output directory which i can get. What i didn't get is how do i "pick them up and merge" using publisher. Also, is there way to do this merging process using pl/sql ? Can you please give little more information on your second approach.
    My original plan of action is that i will create a report set in which i will call oracle seeded report for all 7 payrolls in a sequential manner. Then using the child requests of the report set i will get to 7 xml files generated by seeded oracle process. Then the piece i am not sure of , i will use those 7 files to generate a single xml file having payroll name as tree top for each output. Once single xml is ready, i can easily design a template and register the process to generate output as Excel.This process will not require me to actually change any data or do any calculation. It will only reformatting the feilds we see and abiity to see all 7 payroll at one time rather then entering these numbers manually into an excel to do analysis.
    Please provide your feedback, if you think above plan is not feasible or need corrections.
    Best Regards,
    Ankur

  • Plug-in load class error while running portalapp.xml file in NWDS7.0

    hi,
    im facing a problem in NWDS7.0 while running portalapp.xml file im getting error realted some plug-in load class error.
    Even 3 times i have re-installed but still getting same error.
    Please help me how to over come this. This is error im getting :
    Please open this link with Firefox so that you can able to see error.
    http://www.imageurlhost.com/images/jri5lj7lpftu23ejyye0_Error.jpg
    Regards,
    prasad.

    Dear Prasad
    Please right click on portalapp.xml > open with > check all the available editors.
    Also restore default edition in NWDS. Go to windows > preference > Workbench OR Web editors > click on restore default and Apply and then Ok.
    then close the NWDS and open it.
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • How to run a batch file as windows Nt service

    Hi friends
    I want to know how to run a batch file as windows NT service.
    I got some information in the following link
    http://support.microsoft.com/kb/q243486/
    I tried it but i want to know what we need to include in Autoexnt.bat
    And one thing i need Instexnt.exe file. I cannot find tht file.
    Please search tht file and send me tht file or else send the link in which this file is present
    Please give me reply fast.its very urgent.
    Thanks in advance.

    Hi,
    My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
    I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
    I can keep the JAR FIle either in the Oracle Server or in the Application Server.
    The Java program is to convert XML Format FIle to PDF and MS Word format.
    Oracle Version : 10g 2.0.1.0.
    Thanks in advance
    Rizly

  • How to upload a XML file to Servlet

    Hi,
    I am new to Java, I have to upload an XML file to java/j2ee server. The web server running on the server is "Tomcat 4.1". My new requirement is I have to upload an "Input.XML" file, can you please tell me how to upload an XML file. If any samples appriciated very soon.
    Thanks & Regards,

    Hi!
    On the client side, the client's browser must support form-based upload. Most modern browsers do, but there's no guarantee. For example,
    <FORM ENCTYPE='multipart/form-data'
    method='POST' action='/myservlet'>
    <INPUT TYPE='file' NAME='mptest'>
    <INPUT TYPE='submit' VALUE='upload'>
    </FORM>
    The input type &quot;file&quot; brings up a button for a file select box on the browser together with a text field that takes the file name once selected. The servlet can use the GET method parameters to decide what to do with the upload while the POST body of the request contains the file data to parse.
    When the user clicks the "Upload" button, the client browser locates the local file and sends it using HTTP POST, encoded using the MIME-type multipart/form-data. When it reaches your servlet, your servlet must process the POST data in order to extract the encoded file. You can learn all about this format in RFC 1867.
    Unfortunately, there is no method in the Servlet API to do this. Fortunately, there are a number of libraries available that do. Some of these assume that you will be writing the file to disk; others return the data as an InputStream.
    You can see more things about Servlet on this website [http://pedrofao.blogspot.com|http://pedrofao.blogspot.com].

  • How to import external XML file

    Hello guys:
    From this demo
    http://www.adobe.com/devnet/flex/quickstart/accessing_xml_data/#section2
    we know how to use a intrernal XML document. I know there are
    several way to load a external XML like:
    <mx:HTTPService
    id="loadTest"
    useProxy="false"
    showBusyCursor="true"
    resultFormat="xml"
    url="data/login.xml"
    />
    What I want to know is whether I could load a XML file
    directly, not use HTTPService and send. For a instance:
    [Bindable]
    private var login:XML = ("data/login.xml");
    or something like that. And then I could use login.user or
    login. pass .
    Now seems it is easy to control a intrernal XML data. I want
    to import a external XML file and use it like a intrernal XML.
    Thanks a lot

    You only have 2 choices: include the XML as part of the SWF
    using <mx:XML source="filename.xml" /> or load it dynamically
    using a data service such as HTTPService.

  • How to run the cocoa app directly after completion of downloading ?

    Hi ,
    How to run the cocoa app directly on mac after completion of downloading ? I have a .app at server , I want to run the .app automatically after download and the .app should not save at download directories .
    Thanks

    hi,
    There is no need to burn on Disk..instead run the runInstaller file fiom Disk1/install..please read the readme.txt file before installation..
    check the kernel parameter and Even set the DISPLAY before installtion,in order to get proper GUI
    Regards
    Fabian

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How do I move a file directly from the desktop to a folder in OX 10?

    I am new to Mac and the Mountain Lion software.  Having worked exclusively with PC operating systems, I am familiar with how to work with files in Windows, but am having trouble doing similar actions in OX 10.  How do I move a file directly from the desktop to a folder in OX?  Although this answer is likely in a video tutorioal (somewhere), I do not have the time to sit an arbitrarily watch generic OS videos that give a broad brush overview, without answering specific queries.  Any help out there?

    You might fun http://www.apple.com/support/macbasics/ to be of help to get used to doing things the Mac way.
    Allan

  • How to run a jar file in JBuilder

    Hi there
    I need to know how to run a jar file using JBuilder. Thanks :)
    Countess

    well i have a german version of jbuilder and there it is under
    experten Archiv-builder
    look at something that has a similar name

  • How to run a JAR file in Unix system?

    hi there
    ca anyone tell me how to run a JAR file in unix system or X window, thank you

    You want to create an executable JAR file? You do it in the following way.
    Create a manifest file such as manif.txt and the contents should contain
    Main-Class: foo
    assuming foo is the name of your main class. Then create the jar as follows
    jar cvfm foo.jar manif.txt foo.class
    I hope that helps you!
    you can find more info here http://java.sun.com/docs/books/tutorial/jar/

  • How to load an XML file to oracle9i server?

    I want to use XSU DBMS_XMLsave package to load an XML file to a relational table using PL/SQL from a distant server. Now, I don't know how to load that XML file to the distant server.
    Somebody help me?

    I want to use XSU DBMS_XMLsave package to load an XML file to a relational table using PL/SQL from a distant server. Now, I don't know how to load that XML file to the distant server.
    Somebody help me?

  • Does anyone know how to convert an XML file to a readable file?

    All,
    I have been using an APP called "SMS Backup & Restore" to backup my message conversations to my Laptop PC.  It works fine BUT the backup file, once in my PC, has an XML extent such as "filename.XML"
    I would like to read and/or print and/or save the text message file so does anyone know how to convert the XML file to something else so it shows all the messages without all the formatting instructions.   
    When I try to see the XML file it shows all the formatting.  If I replace the .XML with .TXT that too shows all the formatting mixed in with the text message narrative.
    When I look at the XML file in SMS Backup & Restore in the Charge phone it looks great showing all the messages just as they were on the phones display.  The problem with this is that there is no way to print or read or save the messages as they appear in the file from the phone itself.  I tried screen capture but if you have, let's say, a 28 message conversation you have to do 7 or 8 screen captures to get them all.
    If only I could convert the XML in my PC to something that is printable or savable or readable that would be the "cats meow."
    Anyone know how???
    JerryF
    PS, You might take a look at my related post.
    https://community.verizonwireless.com/message/809832#809832

    Ann154,
    You were correct again.  I deleted everything I had done to date and re-did the entire SMS backup of my 28 message conversation again and YES I was able to open it using IE-8.  It looks great and it prints great and life is good!  I am going to go make a donation.
    Thanks again for the help.  I marked this thread as answered by you.
    JerryF

  • How to create new XML file using retreived XML content by using SAX API?

    hi all,
    * How to create new XML file using retreived XML content by using SAX ?
    * I have tried my level best, but output is coming invalid format, my code is follows,
    XMLFileParser.java class :-
    import java.io.StringReader;
    import java.io.StringWriter;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.sax.SAXTransformerFactory;
    import javax.xml.transform.sax.TransformerHandler;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.xml.sax.Attributes;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.XMLFilterImpl;
    public class PdfParser extends XMLFilterImpl {
        private TransformerHandler handler;
        Document meta_data;
        private StringWriter meta_data_text = new StringWriter();
        public void startDocument() throws SAXException {
        void startValidation() throws SAXException {
            StreamResult streamResult = new StreamResult(meta_data_text);
            SAXTransformerFactory factory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();
            try
                handler = factory.newTransformerHandler();
                Transformer transformer = handler.getTransformer();
                transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                handler.setResult(streamResult);
                handler.startDocument();
            catch (TransformerConfigurationException tce)
                System.out.println("Error during the parse :"+ tce.getMessageAndLocation());
            super.startDocument();
        public void startElement(String namespaceURI, String localName,
                String qualifiedName, Attributes atts) throws SAXException {
            handler.startElement(namespaceURI, localName, qualifiedName, atts);
            super.startElement(namespaceURI, localName, qualifiedName, atts);
        public void characters(char[] text, int start, int length)
                throws SAXException {
            handler.characters(text, start, length);
            super.characters(text, start, length);
        public void endElement(String namespaceURI, String localName,
                String qualifiedName) throws SAXException {
            super.endElement("", localName, qualifiedName);
            handler.endElement("", localName, qualifiedName);
        public void endDocument() throws SAXException {
        void endValidation() throws SAXException {
            handler.endDocument();
            try {
                TransformerFactory transfactory = TransformerFactory.newInstance();
                Transformer trans = transfactory.newTransformer();
                SAXSource sax_source = new SAXSource(new InputSource(new StringReader(meta_data_text.toString())));
                DOMResult dom_result = new DOMResult();
                trans.transform(sax_source, dom_result);
                meta_data = (Document) dom_result.getNode();
                System.out.println(meta_data_text);
            catch (TransformerConfigurationException tce) {
                System.out.println("Error occurs during the parse :"+ tce.getMessageAndLocation());
            catch (TransformerException te) {
                System.out.println("Error in result transformation :"+ te.getMessageAndLocation());
    } CreateXMLFile.java class :-
    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();
    Sax.endElement("", "basic-metadata", "basic-metadata");* In CreateXMLFile.java
    class, I have retreived the xml content in the meta_data object, after that i have converted into character array and this will be sends to SAX
    * In this case , the XML file created successfully but the retreived XML content added as an text in between basic-metadata Element, that is, retreived XML content
    is not an XML type text, it just an Normal text Why that ?
    * Please help me what is the problem in my code?
    Cheers,
    JavaImran

    Sax.startDocument();
    Sax.startValidation();
    Sax.startElement("", "pdf", "pdf", new AttributesImpl());
    Sax.startElement("", "basic-metadata", "basic-metadata", new AttributesImpl());          
    String xmp_str = new String(meta_data.getByteArray(),"UTF8");
    char[] xmp_arr = xmp_str.toCharArray();
    Sax.characters(xmp_arr, 0, xmp_arr.length);
    </code><code>Sax.endElement("", "basic-metadata", "basic-metadata");</code>
    <code class="jive-code jive-java">Sax.endElement("", "pdf", "pdf");
    Sax.endValidation();
    Sax.endDocument();     
    * I HAVE CHANGED MY AS PER YOUR SUGGESTION, NOW SAME RESULT HAS COMING.
    * I AM NOT ABLE TO GET THE EXACT OUTPUT.,WHY THAT ?
    Thanks,
    JavaImran{code}

Maybe you are looking for