How to avoid & # 1 3 ; in serialized XML?

I use the following code to write a XML (DOM) object to file:
            FileOutputStream fos = new FileOutputStream(file);            TransformerFactory tf = TransformerFactory.newInstance();            try {                Transformer t = tf.newTransformer();                t.setOutputProperty("media-type", "text/plain"); //default: text/plain                t.setOutputProperty("indent", "yes");                t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");                DOMSource domsource = new DOMSource(document);                StreamResult sr = new StreamResult(fos);                t.transform(domsource, sr);             } catch (TransformerConfigurationException tce) {                tce.printStackTrace(System.err);            } catch (TransformerException te) {                te.printStackTrace(System.err);            }i need to have nice formatting and preserved white spaces/lines. the code above does this, but also inserts a 
 for each carriage return (in addition to the carriage return itself). so the output is
This is line 1.
And this is line 2instead of:
This is line 1.
And this is line 2How can i avoid the generation of this 
?

In XML, 
 is exactly equivalent to a carriage-return character.

Similar Messages

  • How to avoid the null values from xml publisher.

    I am creating a report which have the claim numbers with the values CLA001,CLA111,null, null . when i preview my report it is showing some spaces for null values also. How can i avoid the spaces from the report.
    I am giving for loop for the claim numbers in the template.
    <?for-each:ROW?> <?sort:CLAIMNUMBER;'ascending';data-type='text'?>
    <?CLAIMNUMBER?>
    <?end for-each?>
    Please help me out to solve this problem.
    Thanks,
    vasanth.

    Hi Sheshu,
    According to your description, you are experiencing the null values and infinity values when browser the calculated measure, right?
    Based on my research, the issue is caused by that dividing a non-zero or non-null value by zero or null. In this cases, we need to check for division by zero to avoid this situation. Here is the sample query for you reference.
    IIF(
    Measures.[Measure B]=0,null,
    Measures.[Measure A] / Measures.[Measure B]
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Interesting Reqrmnt - How to avoid sending namespace in the xml response

    Hi,
    Below is the XML response we generate and send it to HTTP Receiver.
    - <ns1:CATSIMPORT xmlns:ns1="urn:pweh.com:erp:hr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Version>1.0</Version>
      <TrackID>{5A3C87A5-48FD-4BCD-9178-A200F10F118D}</TrackID>
    - <ReturnCode>
      <value>Success</value>
      </ReturnCode>
      </ns1:CATSIMPORT>
    Can we remove the first and last line of the xml content and send it.
    Please send in your suggestions or answers.
    Regards,
    Amar Nemalikanti

    Hi Amareshwar,
    Check my replies in this link.
    just like java code to add a tag, you can use to remove a tag, before it goes to http adapter.
    Re: How to change the incoming xml to a different namespace
    Hope that helps you to fix your issue
    Regards
    Vishnu

  • How to avoid empty elements in generated xml text

    I am using XMLBeans to generate xml.
    If I set text value for a tag then it displaying like
    <param name="org">Satyam</param>
    If I set empty text value for the same tag it generateing xml text like
    <param name="org"/>
    But I don't need empty elements in generated xml like this way. Even though I set empty text to a tag it has to display like
    <param name="org"></param>
    How can I do this one.
    Message was edited by Mouli at Dec 14, 2004 2:55 AM

    Hi,
    by the book these two representations are identical
    <.... />
    <....></....>
    as for the XML-parser.
    What problem are you facing with the <... /> representation?
    I will try to investigate a bit to see if the XMLBean can be forced to write the <....></....> representation.
    - Anders M.

  • After writing into serial port, the same message gets bounced back into the Inqueue also. If anyone know how to avoid this, please rpely.

    Hi,
    After writing into serial port, the same message gets bounced back into the Inqueue also. If anyone know how to avoid this, please reply.
    Thanks,
    Ganesh

    If you disconnect the cable going to the serial device, do you still get the echo? If so you have something going on in the port setup. If disconnecting the cable stops the echo then the device you're talking to is doing it - which would be my bet. One thing to check is whether this might not be normal operation. I have seen devices that if a command was successful, it simply echo'd back the command string you had sent. Also many serial devices have setting for specifying whether they are to echo commands.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to avoid the dtd validate of the "iTunes Music Library.xml " when read?

    Hi all,
    In the article of What are the iTunes library files?("http://docs.info.apple.com/article.html?artnum=93732" ),there is something about the function of "iTunes Music Library.xml " of iTunes.I can get information by reading this xml file.But this file must be validated online(dtd validate).When the net is unconnected,the web exception may be threw.How to avoid the dtd validate of the "iTunes Music Library.xml " when read?Thank you.

    You can do this with YamiPod (Free)
    http://www.yamipod.com/main/modules/downloads/
    Or manualy:
    Here is a link to where it tells how to do this manualy:
    http://discussions.apple.com/message.jspa?messageID=797432#797432

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to avoid output file and error lines when condition does not match

    Hi Experts
    A customer want to send purchase order files to several vendors and each vendor has their own requirement to content and file format. I have prepared scenarios for each vendor and a template is (conditionally) called when CardCode matches. It works fine, - PO file is generated when CardCode matches, but error lines are written to SAP B1 Control Center each time CardCode does not match the one defined in a scenario (100 or more times per day). Problem is that these error lines does not get automatic deleted. Conditional processing are made in this way:
    Result Message in SAP B1 Control Center when CardCode does not match:
    I tried to avoid an error line in SAP B1 Control Center when CardCode does not match in this way:
    Then no error lines are written to SAP B1 Control Center, but an output file is generated each time (order file when CardCode matches and an empty file when CardCode does not match).
    Any suggestions on how to avoid both errors types (error lines in SAP B1 Control Center and empty output files)?
    Or - can lines in SAP B1 Control Center be automatic deleted?
    Regards
    Steen

    Hi Steen,
    using <b1im_skip> should be the right approach, if you're working with B1 OUTBOUND.
    Following extract form the B1i help describes the usage to skip the outbound processing:
    1.1 Skipping Outbound Processing
    If you do not want to hand over the message to the receiver system, the scenario step can create a special tag that indicates to generic processing in the integration framework to skip the message processing.
    Add the following to the final transformation atom (atom0):
    <b1im_skip xmlns= ”” info=”my info” msglog=”true” msgout="yes">
    If the integration framework skips the message, it puts the message log information to the Filtered section, if the message log is switched on. The result message contains the Message skipped by vBIU logic information.
    info
    To display an individual message, define it using the info attribute.
    msglog
    If you want to avoid an entry in the message log, introduce the msglog attribute and set it to false.
    msgout
    To display the skip information in the Success section of the message log, use the msgout attribute and set it to yes.
    In case you don't want any MsgLogEntry in case of a skipped message, please enter the following in final atom0:
    <xsl:template name="transform">
    <xsl:attribute name="pltype">xml</xsl:attribute>
    <xsl:choose>
    <xsl:when test="$msg/BOM/BO/Documents/row/CardCode=&apos;C20000&apos;">
    <xsl:call-template name="transform2"/>
    </xsl:when>
    <xsl:otherwise>
    <b1im_skip info="skipped" msglog="false"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Best regards
    Bastian

  • How to avoid error while install oracle developer suite10g(forms & reports)

    hi dear all in recent times i am trying to install oracle developer suite 10g to learn forms and reports in my lap having windows 7 ultimate version ,32 bit,2.56 GB of ram .I downloaded two files ds_windows_x86_101202_disk1 and ds_window_x86_101202_disk2 and i downloaded Oracle universal Installer but i am unable to complete installation process ,When i click on complete(1.11gb) version which include forms,reports,xml,j developer I am facing this type of error message
    "Install has encountered an error while attempting to verify your virtual settings.please verify that the sum of the initial sizes of the paging files is at least 256 mb"
    Could any one help how to avoid this type of error message ? or else is there any other way to download Oracle forms and reports version

    Ok, Oracle Developer Suite (ODS) 10g (Forms/Reports) was not designed for Windows 7. In order to the ODS you must follow these steps for the installation to be successful.
    1. You must set the Virtual Memory (VM) size. The Oracle installer can not read Windows Managed VM. See the Microsoft article Change the size of virtual memory for more information on setting the VM size.
    2. The Oracle Installer does not recognize the internal version number of Windows 7, so you have to set the compatibility mode on the Setup.exe to Windows XP. Right-Click the SETUP.EXE and select properties. Then click the Compatibility Tab and in the Compatibility Mode area set this to "Run this program in compatibility mode" and select "Windows XP SP3".
    3. You must run the ODS setup.exe as the Administrator. Right-click the setup.exe and select "Run as Administrator".
    Having done these three steps, your installation should be successful.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to avoid shut down BPELPM Server when creating a user?

    Hi,
    How to avoid shut down BPELPM Server when creating a JAZN user and after doing changes to user-properties.xml?
    Thanks,
    Jorge

    this configuration is only supported on a midtier - there is a work around for a standalone install, nevertheless I would not recommend this for production ..
    if this is NOT a production enviroment - I can try to get you the information .
    /clemens

  • How to append the timestamp in log4j.xml

    Hi,
    Has anybody know how to configure the timestamp in log4j.xml??
    It would be great, if you could update the right parameter name in my log4.xml which appears below to display timestamp in my log file Master.log!
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
      xmlns:log4j="http://jakarta.apache.org/log4j/">
      <!-- Order of child elements is appender*, logger*, root?. -->
      <!-- Appenders control how logging is output. -->
      <appender name="CM" class="org.apache.log4j.FileAppender">
         <param name="File" value="Master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="true"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
        <layout class="org.apache.log4j.PatternLayout">
          <!-- {fully-qualified-class-name}:{method-name}:{line-number}
                - {message}{newline} -->
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>     
      </appender>
      <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
        <param name="Threshold" value="INFO"/>
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>
      </appender>
      <!-- Logger hierarchy example:
           root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
      -->
      <!-- Setting additivity to false prevents ancestor categories
           for being used in addition to this one. -->
      <logger name="com.tf" additivity="true">
        <priority value="DEBUG"/>
        <appender-ref ref="CM"/>
      </logger>
      <!-- Levels from lowest to highest are
           trace, debug, info, warn, error, fatal & off. -->
      <!-- The root category is used for all loggers
           unless a more specific logger matches. -->
      <root>
        <appender-ref ref="stdout"/>
      </root>
    </log4j:configuration>

    Hello Sir,
    I have configured Log4j.xml for my project and it is able to generate the log file properly with the timestamp,but it is showing the the following error messaged at weblogic console!
    log4j:ERROR Parsing error on line 3 and column 8
    log4j:ERROR Element type "log4j" must be declared.
    log4j:ERROR Parsing error on line 15 and column 13
    log4j:ERROR The content of element type "appender" must match "(errorHandler?,param*,layout?,filter*,appender-ref*)".
    log4j:ERROR Parsing error on line 16 and column 57
    log4j:ERROR Attribute "priority" must be declared for element type "category".
    log4j:ERROR Parsing error on line 19 and column 25
    log4j:ERROR Attribute "priority" must be declared for element type "root".log4j:ERROR Parsing error on line 39 and column 12
    log4j:ERROR The content of element type "logger" must match "(level?,appender-ref*)".
    log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
    log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
    Here is my Log4j.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
    xmlns:log4j="http://jakarta.apache.org/log4j/">
    <!-- Order of child elements is appender*, logger*, root?. -->
    <!-- Appenders control how logging is output. -->
    <appender name="CM" class="org.apache.log4j.DailyRollingFileAppender">
         <param name="File" value="Customer_Master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="false"/>
         <param name="DatePattern" value="'.'yyyy-MM-dd"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
    <layout class="org.apache.log4j.PatternLayout">
    <!-- {fully-qualified-class-name}:{method-name}:{line-number}
    - {message}{newline} -->
    <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    </layout>
    </appender>
    <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
    <param name="Threshold" value="INFO"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
    </layout>
    </appender>
    <!-- Logger hierarchy example:
    root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
    -->
    <!-- Setting additivity to false prevents ancestor categories
    for being used in addition to this one. -->
    <logger name="com.tf" additivity="true">
    <priority value="DEBUG"/>
    <appender-ref ref="CM"/>
    </logger>
    <!-- Levels from lowest to highest are
    trace, debug, info, warn, error, fatal & off. -->
    <!-- The root category is used for all loggers
    unless a more specific logger matches. -->
    <root>
    <appender-ref ref="stdout"/>
    </root>
    </log4j:configuration>
    It would be great,if you could correct the above xml file and avoid getting the error message from Weblogic console.
    Thanks in advance,
    kumar

  • How to avoid default row on top of a table

    Dear Members,
    I have created a simple JSF page using ADF.
    In the page, I am displaying departments and employee data.
    Departments data is displayed using the ADF Form and the employee data is displayed using ADF Table.
    When I am running the page a default row is appearing above the ADF Table.
    I request you to please let me know, how to avoid this default row displayed on top of the table.
    Many thanks in advance.
    Regards.

    Hello John,
    My page code is as follows:
    *<?xml version='1.0' encoding='UTF-8'?>*
    *<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">*
    *<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">*
    *<af:document title="DeptEmp.jsf" id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">*
    *<f:facet name="center">*
    *<af:group id="g1">*
    *<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">*
    *<af:panelFormLayout id="pfl1" maxColumns="2" rows="2">*
    *<af:inputText value="#{bindings.DepartmentId.inputValue}"*
    *label="#{bindings.DepartmentId.hints.label}"*
    *required="#{bindings.DepartmentId.hints.mandatory}"*
    *columns="#{bindings.DepartmentId.hints.displayWidth}"*
    *maximumLength="#{bindings.DepartmentId.hints.precision}"*
    *shortDesc="#{bindings.DepartmentId.hints.tooltip}" id="it1">*
    *<f:validator binding="#{bindings.DepartmentId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.DepartmentId.format}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.DepartmentName.inputValue}"*
    *label="#{bindings.DepartmentName.hints.label}"*
    *required="#{bindings.DepartmentName.hints.mandatory}"*
    *columns="#{bindings.DepartmentName.hints.displayWidth}"*
    *maximumLength="#{bindings.DepartmentName.hints.precision}"*
    *shortDesc="#{bindings.DepartmentName.hints.tooltip}" id="it12">*
    *<f:validator binding="#{bindings.DepartmentName.validator}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.LocationId.inputValue}"*
    *label="#{bindings.LocationId.hints.label}"*
    *required="#{bindings.LocationId.hints.mandatory}"*
    *columns="#{bindings.LocationId.hints.displayWidth}"*
    *maximumLength="#{bindings.LocationId.hints.precision}"*
    *shortDesc="#{bindings.LocationId.hints.tooltip}" id="it13">*
    *<f:validator binding="#{bindings.LocationId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.LocationId.format}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.ManagerId.inputValue}"*
    *label="#{bindings.ManagerId.hints.label}"*
    *required="#{bindings.ManagerId.hints.mandatory}"*
    *columns="#{bindings.ManagerId.hints.displayWidth}"*
    *maximumLength="#{bindings.ManagerId.hints.precision}"*
    *shortDesc="#{bindings.ManagerId.hints.tooltip}" id="it14">*
    *<f:validator binding="#{bindings.ManagerId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.ManagerId.format}"/>*
    *</af:inputText>*
    *<f:facet name="footer">*
    *<af:panelGroupLayout layout="vertical" id="pgl3">*
    *<af:panelGroupLayout layout="horizontal" id="pgl4">*
    *<f:facet name="separator">*
    *<af:spacer width="10" height="1" id="s1"/>*
    *</f:facet>*
    *<af:commandButton actionListener="#{bindings.First.execute}" text="First"*
    *disabled="#{!bindings.First.enabled}" partialSubmit="true"*
    *id="cb1"/>*
    *<af:commandButton actionListener="#{bindings.Previous.execute}"*
    *text="Previous" disabled="#{!bindings.Previous.enabled}"*
    *partialSubmit="true" id="cb2"/>*
    *<af:commandButton actionListener="#{bindings.Next.execute}" text="Next"*
    *disabled="#{!bindings.Next.enabled}" partialSubmit="true"*
    *id="cb3"/>*
    *<af:commandButton actionListener="#{bindings.Last.execute}" text="Last"*
    *disabled="#{!bindings.Last.enabled}" partialSubmit="true"*
    *id="cb4"/>*
    *</af:panelGroupLayout>*
    *<af:commandButton text="Submit" id="cb5"/>*
    *</af:panelGroupLayout>*
    *</f:facet>*
    *</af:panelFormLayout>*
    *</af:panelGroupLayout>*
    *<af:spacer width="10" height="20" id="s2"/>*
    *<af:separator id="s3"/>*
    *<af:panelGroupLayout id="pgl2" layout="vertical" halign="center">*
    *<af:table value="#{bindings.EmployeesVO1.collectionModel}" var="row"*
    *rows="#{bindings.EmployeesVO1.rangeSize}"*
    *emptyText="#{bindings.EmployeesVO1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.EmployeesVO1.rangeSize}" rowBandingInterval="0"*
    *filterModel="#{bindings.EmployeesVO1Query.queryDescriptor}"*
    *queryListener="#{bindings.EmployeesVO1Query.processQuery}" filterVisible="true"*
    *varStatus="vs"*
    *selectionListener="#{bindings.EmployeesVO1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1" width="90%" partialTriggers="::cb6">*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.CommissionPct.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.CommissionPct.label}" id="c1">*
    *<af:inputText value="#{row.bindings.CommissionPct.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.CommissionPct.label}"*
    *required="#{bindings.EmployeesVO1.hints.CommissionPct.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.CommissionPct.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.CommissionPct.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.CommissionPct.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.CommissionPct.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.DepartmentId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.DepartmentId.label}" id="c2">*
    *<af:inputText value="#{row.bindings.DepartmentId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.DepartmentId.label}"*
    *required="#{bindings.EmployeesVO1.hints.DepartmentId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.DepartmentId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.DepartmentId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.DepartmentId.tooltip}"*
    *id="it3" readOnly="true">*
    *<f:validator binding="#{row.bindings.DepartmentId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.DepartmentId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.Email.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.Email.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.Email.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.Email.label}"*
    *required="#{bindings.EmployeesVO1.hints.Email.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.Email.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.Email.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.Email.tooltip}" id="it4">*
    *<f:validator binding="#{row.bindings.Email.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.EmployeeId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.EmployeeId.label}" id="c4">*
    *<af:inputText value="#{row.bindings.EmployeeId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.EmployeeId.label}"*
    *required="#{bindings.EmployeesVO1.hints.EmployeeId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.EmployeeId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.EmployeeId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.EmployeeId.tooltip}"*
    *id="it5">*
    *<f:validator binding="#{row.bindings.EmployeeId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.EmployeeId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.FirstName.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.FirstName.label}" id="c5">*
    *<af:inputText value="#{row.bindings.FirstName.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.FirstName.label}"*
    *required="#{bindings.EmployeesVO1.hints.FirstName.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.FirstName.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.FirstName.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.FirstName.tooltip}" id="it6">*
    *<f:validator binding="#{row.bindings.FirstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.HireDate.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.HireDate.label}"*
    *id="c6">*
    *<f:facet name="filter">*
    *<af:inputDate value="#{vs.filterCriteria.HireDate}" id="id1">*
    *<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
    *</af:inputDate>*
    *</f:facet>*
    *<af:inputDate value="#{row.bindings.HireDate.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.HireDate.label}"*
    *required="#{bindings.EmployeesVO1.hints.HireDate.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.HireDate.displayWidth}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.HireDate.tooltip}" id="id2">*
    *<f:validator binding="#{row.bindings.HireDate.validator}"/>*
    *<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
    *</af:inputDate>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.JobId.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.JobId.label}"*
    *id="c7">*
    *<af:inputText value="#{row.bindings.JobId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.JobId.label}"*
    *required="#{bindings.EmployeesVO1.hints.JobId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.JobId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.JobId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.JobId.tooltip}" id="it7">*
    *<f:validator binding="#{row.bindings.JobId.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.LastName.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.LastName.label}"*
    *id="c8">*
    *<af:inputText value="#{row.bindings.LastName.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.LastName.label}"*
    *required="#{bindings.EmployeesVO1.hints.LastName.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.LastName.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.LastName.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.LastName.tooltip}" id="it8">*
    *<f:validator binding="#{row.bindings.LastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.ManagerId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.ManagerId.label}" id="c9">*
    *<af:inputText value="#{row.bindings.ManagerId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.ManagerId.label}"*
    *required="#{bindings.EmployeesVO1.hints.ManagerId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.ManagerId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.ManagerId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.ManagerId.tooltip}" id="it9">*
    *<f:validator binding="#{row.bindings.ManagerId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.ManagerId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.PhoneNumber.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.PhoneNumber.label}" id="c10">*
    *<af:inputText value="#{row.bindings.PhoneNumber.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.PhoneNumber.label}"*
    *required="#{bindings.EmployeesVO1.hints.PhoneNumber.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.PhoneNumber.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.PhoneNumber.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.PhoneNumber.tooltip}"*
    *id="it10">*
    *<f:validator binding="#{row.bindings.PhoneNumber.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.Salary.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.Salary.label}"*
    *id="c11">*
    *<af:inputText value="#{row.bindings.Salary.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.Salary.label}"*
    *required="#{bindings.EmployeesVO1.hints.Salary.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.Salary.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.Salary.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.Salary.tooltip}" id="it11">*
    *<f:validator binding="#{row.bindings.Salary.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *<af:separator id="s4"/>*
    *<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="Create Employee"*
    *disabled="#{!bindings.CreateInsert.enabled}" id="cb6"/>*
    *</af:panelGroupLayout>*
    *<af:separator id="s5"/>*
    *<af:panelGroupLayout id="pgl5" layout="vertical" halign="center">*
    *<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save"*
    *disabled="#{!bindings.Commit.enabled}" id="cb7"/>*
    *</af:panelGroupLayout>*
    *</af:group>*
    *</f:facet>*
    *<f:facet name="header"/>*
    *<f:facet name="branding"/>*
    *<f:facet name="copyright"/>*
    *<f:facet name="status"/>*
    *</af:pageTemplate>*
    *</af:form>*
    *</af:document>*
    *</f:view>*

  • Sorry about first try : how to avoid html-text tag converting & to & amp;

    subject
    how to avoid html:text tag converting "&" to "& amp;"?
    body
    hi,
    i have some values on DB like "& #351;" and when i use html:text to
    show binding's value, html:text converts "&" to "& amp;". in generated
    html, it looks like "& amp;#351;".
    how to avoid this conversion?
    thanks...
    Ayhan G�ng�r
    note: i use white-space among special characters because browser renders them. ex : (& amp; to &)

    hi, i use property attribute of html:text.
    property is declared in UIModel xml file.
    i mean, i don't use something like
    <html:text value="data"/>i use just like
    <html:text property="bindingName"/>and value is shown in generated html input tag as value.
    html:text has no attribute like filter.
    i think i should override html:text tag, and create a new tag that checks if value includes "& #351;" this type data. If there is, don't convert "&" to "& amp;"?
    any suggestions?
    thanks...
    Ayhan

  • How to avoid JsessionID passing in URL by using weblogic

    Hi,
              In my application,while login into it,the URL appended with JSessionID but it is security flaw which is very helpful for hacker to leglimate the application.So please how to avoid the Jsessionid is visible in URL to user and it should not appended in the url.
              ie:
              www.joy.com/loginAction.do;jsessionid=hQsmHn1BTY1mp12xLyGl0JTncVrpJGRswpMRY82wLbpqB8B5wJJ1!-829701127
              the above seen url appended in my URL.
              which Method is appropriate to control the appending and is there any tag attribute particularly in weblogic.xml which will take care to avoid to pass thru out application.
              Please come up with solution ASAP i need to implement
              Regards
              Karthik

    Hi Vikram,
              As you said that,by disabling the particular tag attribute ,it will not present on url and how to rewrite the Present URL which back to original URL
              Regards,
              Karthik

Maybe you are looking for