How to write into generated HTML " " etc.?

Hi!
I use xmlparser_v2_0_2_6 for JAVA2 Solaris7.
When I declare ENTITY as:
<!ENTITY nbsp "#xA0;">
write into generated HTML symbol (code=#xA0),
but I need " " string.
Intuitivity I can declare ENTITY as:
<!ENTITY nbsp "&#38;nbsp;">, but it is not work.
Where are trubles?

know how to do that. Thanks

Similar Messages

  • HELP!!!!!! - How to write into a file?

    How to write into a file?
    I want to make a script that will connect(not enter) to my website[for example, www.vasa.com] every time i connect to the internet.
    Now i have 3 problems:
    1. i dont know how to write into a file
    2. i dont know how to make it connect to my 'server' without entering the website
    3. i dont know what file to write it to
    so if someone can help me, please do.

    Well, how about RTFM?? In this case that can be found here:
    http://developer.java.sun.com/developer/onlineTraining/
    BTW - these things have been asked azillion times, search the forum.

  • How to display xslt generated html code?

    Hi,
    I transformed xml code into html code inside my action
    class and put generated code into StringWriter, I
    don't
    know how I can display it on my jsp page?
    I tried to turn generated html code into a big string,
    then use bean:write to display it on jsp page, it just
    does not work.
    Has anyone done this kind of thing?
    thanks

    hi
    Just put that String in JSP expression <%= String name %>
    u will see it on browser
    thanks
    hithesh

  • How to write 'into' a PDF-document ?

    hi there,
    i have a new small project to do with the following problem:
    i get a file (text-file) with invoices from an external system.
    I want to 'overlay' this file with a form, which is a PDF-document.
    the question is: is it possible to write 'into the PDF'-form the contents of the text-file ? if yes, how is it possible ?
    regards, Martin

    well,
    this is not what i need, sorry
    i don't want to convert the text-file into a PDF-file.
    i have an existing PDF-file (a FORM with all the overlay, like graphics, company-logo, etc....). and i have a text file. and i want to 'merge' the text into
    the pdf-file.
    regards, Martin

  • How to write into multicolumn listbox during runtime?

    Hi,
    I am able to edit into multicolumn listbox. But i am not able to write into empty boxes... How to do that???
    Regards,
    Amit

    Hi Amit,
    Have you initialised the item names with any default values? If not try initialising the item names to a 2D size that will be large enough for you're requirements. Once this size is set in edit mode you can't enter data at runtime outside of this initialised area.
    Ian

  • How to write into spool?

    Hi experts,
    I have a  variable in my program that I want to write into the spool to see what was the value of it. How can I do that?

    You can do this...
    NEW-PAGE PRINT ON NO DIALOG
    KEEP IN SPOOL 'X'.
    WRITE: G_VARIABLE.
    NEW-PAGE PRINT OFF.
    Greetings,
    Blag.

  • How to write into ldt log file in case of custom lct file

    Hi Experts,
    I have created one custom lct file for one of my requirement, from that I am calling database package for  UPLOAD.
    I want to write message into ldt log file if some validation fails.
    Can anyone suggest how can I write messages into ldt log file.
    Regards,
    Brajesh

    user13537002 wrote:
    Hi,
    After some search I got the solution
    api  FND_SEED_STAGE_UTIL.INSERT_MSG('Message'); works for me....it write message into ldt log file
    Regards,
    Brajesh
    Thanks for the update and for sharing the solution!
    Regards,
    Hussein

  • How to write into a private fiald from the outer world?

    Hello,
    I have just got some strange rerults and want to share them with you.
    I'm writing a bean class. Each field of the bean conforms to a column in a table of the database. The bean is filled with a record of database from database by Entity Factory and is returned to me. I have not seen the sources of the Entity Factory system. The beans are entities that have setter and getters.
    All my colegues use a standard scheme with private field (named as a column in the database) and setter/getter for it. I have deriviated from this scheme creating a virtual property; that is only setter and getter with no private field. And the Entity Factory started crushing! It cannot find the private field anymore to write data from a table into it!
    I had an experiment adding the private field with the final modifier. And what do you think I've got in effect? The entity Factory started complaining that it CANNOT SET A PRIVATE FIELD BECAUSE IT IS MARKED WITH FINAL! Removing the final has solved the problem.
    Can you beleive this story? As the system is Enterprise, I would think that application server would sublass my implementation. But the privates should be inaccessible anyway. I'm going to look into source codes tomorrow.

    As Kayaman says, you can get around the restriction described in the JLS by use of Reflection.
    Consider the following example:
    class SimpleKeyPair {
        private String privateKey = "original"; // private field
    public class ReflectionChecker {
        public static void main(String[] args) throws Exception {
            SimpleKeyPair keyPair = new SimpleKeyPair();
            Class c = keyPair.getClass();
            // get the reflected object
            Field field = c.getDeclaredField("privateKey");
            // set accessible true
            field.setAccessible(true);
            System.out.println("Value of privateKey: " + field.get(keyPair)); // prints "original"
            // modify the member varaible
            field.set(keyPair, "altered");
            System.out.println("Value of privateKey: " + field.get(keyPair)); // prints "altered"
    }

  • How we write into properties file using get class method

    Hi
    I want to set some value into properties file using given code
    can any one please tell me how i can do this.
    property file
    setting.properties
    Name     =     abc
    and code I use is
    java.io.InputStream oInputStream = this.getClass().getResourceAsStream("Setting.properties");
                   Properties obj = new Properties();
                   obj.load(oInputStream);
                   String myName = obj.getProperty("Name");
                   System.out.println("myName :"+myName);
                   obj.setProperty("Name","def");
                   FileOutputStream oOutput= new FileOutputStream("Setting.properties");
                   obj.store(oOutput, "");
    thanks.

    You can't.
    If you have properties that change dynamically, you should not be using a properties file that sits in the classpath, you should be using Preferences, or a properties file that sits in some application or possibly even user directory, but not one in the classpath. The proper way to do this, would be to have a properties file in your jar (or otherwise in your classpath) that contains the defaults, and another one outside of the classpath in one of the twwo above mentioned areas, then, you read the default one only if the other doesn't exist, or you read the default one first, then read the other overwriting the values from the defaults.
    Don't forget to save the properties again (right after loading if you loaded, or always load, the defaults) after every change.

  • How to write into file from xml dom Object

    Hello,
    I try to transform my xml DOM document object into
    file. I try the following:
    try {
              // Prepare the DOM document for writing
              DOMSource source = new DOMSource(newDoc);
              // Prepare the output file
              File file = new File(myHomeRep + "btLom.xml");
              StreamResult result = new StreamResult(file);
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(source, result);
              } catch (TransformerConfigurationException e) {
              } catch (TransformerException e) {
    But my file is empty.
    I do it with some wel formed xml tree document, thus I am certain
    that the xml tree exists.
    Could you explane me please what I am doeing wrong,
    or is there are some possibility to make from my xml dom object
    a file.
    In advance much thanks,
    Julia

    Here's one thing you are doing wrong:} catch (TransformerConfigurationException e) {
    } catch (TransformerException e) {
    }With this code, if an exception occurs then you are guaranteed to know nothing about it. At the minimum do this:} catch (TransformerConfigurationException e) {
      e.printStackTrace();
    } catch (TransformerException e) {
      e.printStackTrace();
    }

  • How to write into a file from an applet?

    Dear,
    I made an applet and I want to create a file in a machine. I tried many way but it not work.
    Here is the code:
    URL url = "http://hostname/filename.txt;
    URLConnection con = url.openConnection();
    OutputStream out = con.getOutputStream();
    out.write(data);
    out.flush();
    out.close();
    Please help me resolve it.
    Thanks.
    Khai

    URL url = new URL("http://hostname/filename.txt);
    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(url.openStream()));
    out.write("data");

  • How to write into selection screen varient table?

    What is varient table name.
    i need to update varient every time i have executed tha report.
    How can i do it?

    You can use this FM to create the variant again
    <b>end-of-selection.</b>
    CALL FUNCTION 'RS_CREATE_VARIANT'
        EXPORTING
          CURR_REPORT               = CURR_REPORT
          CURR_VARIANT              = CURR_VARIANT
          VARI_DESC                 = VARI_DESC
        TABLES
          VARI_CONTENTS             = VARI_CONTENTS
          VARI_TEXT                 = VARI_TEXT
          VSCREENS                  = VSCREENS
        EXCEPTIONS
          ILLEGAL_REPORT_OR_VARIANT = 1
          ILLEGAL_VARIANTNAME       = 2
          NOT_AUTHORIZED            = 3
          NOT_EXECUTED              = 4
          REPORT_NOT_EXISTENT       = 5
          REPORT_NOT_SUPPLIED       = 6
          VARIANT_EXISTS            = 7
          VARIANT_LOCKED            = 8
          ERROR_MESSAGE             = 9
          OTHERS                    = 10.

  • How to generate html-code using csv input with JSP or JAVA???

    Hello,
    I want to read out a .csv-file and generate html-code dynmically with JSP in an EP6 Application. The problem is, that the csv-file can’t be located or openend.
    BTW if every knows a good tutorial or weblog for this, please post the link.
    It’s located in a par-archive under:
    />dist>files
    I tried various methods, in the doContent mehtod or with JSP. Everytime same result.
    Here part of the code I tried in the doContent():
    public class CSV extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            String strWRoot = request.getWebResourcePath();
            String contentCSV="", line="";
            String linesep = System.getProperty("line.separator");
            File fileLoadCSV = new File(strWRoot+"/files/ma_infosysteme.csv");
            boolean exCSV = fileLoadCSV.exists();
            boolean reCSV = fileLoadCSV.canRead();
            int a=0;
            if(exCSV&&reCSV){
                response.write("ok");
                try {
                  BufferedReader inputCSV = new BufferedReader(new FileReader(fileLoadCSV));
                  while((line=inputCSV.readLine())!=null){
                    contentCSV=contentCSVlinelinesep;
                    a++;
                  inputCSV.close(); 
                catch(IOException ioex){
                    System.out.println("Fehler");  
            else {
                response.write("not ok");
            response.write("<br>Wroot: "+strWRoot);
            response.write("<br>File: "+fileLoadCSV);
            response.write("<br>exists: "+exCSV);
            response.write("<br>read: "+reCSV);
            response.write("<br>Input: "+contentCSV);
    The Output is:
    not ok
    Wroot: /irj/portalapps/DHTML
    File: \irj\portalapps\DHTML\files\ma_infosysteme.csv
    exists: false
    read: false
    Input:
    So thanks to everyone who can give me a good hint.
    Bye.

    Without really looking too much into this it looks like the problem is with the way in which you are trying to open the file. I believe that when creating a File object you need to use a physical path. By using the getWebResourcePath() method you are retrieving the URL to this file and not the physical path name. There is another method (can't remember the exact name) called getPublicResourcePath() (or something similar) which will return the physical path to this file, i.e. c:\usr\sap\.....etc. If you try it this way it may well work
    I hope this helps
    D

  • How to embed font into generated PDF?

    Hi,
    I have an issue with cyrillic fonts in PDF-file, generated from smartform using the following mechanism:
    1. Run FM for smartform with ==> getotf = 'X'
    2. Perform CONVERT_OTF retrieving result into a XSTRING.
    3. Converting xstring content into a table using "cl_document_bcs=>xstring_to_solix).
    4. Creating mail to an external internet user with attached pdf ==> using "cl_document_bcs=>create_document..."
    Smartform contains cyrillic content, based on HELVCYR (Helvetica cyrillic) font. Application server is based on Windows.
    Everything worked well (for months!) for allmost all of the clients of our customer. Of course, some of clients have different OS-es (such as Linux, Mac OS, etc.), and then the problem starts - they doens't view properly the cyrillic content. English content (even numbers, etc.) are properly displayed. We found what fonts are used in the PDF, but my questions are:
    1. Is it possible to embed the font into generated PDF-content?
    2. If no, is it possible to generate PDF-content non-selectable (i.e. in some image mode) ?
    If yes, how to do this?
    Or is there any other way to workarround this issue - to be able to display mail with attached PDF-content with cyrillic on different OS-es? It would be better if it is possible without calling external converter...
    Any help would be highly appreciated.
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Hello Ivaylo Mutafchiev,
                                           There is no way we can control the fonts in the created PDF / while creating the PDF using the class cl_document_bcs in your PDF creation logic.
    You can try some other approach of creating PDF from the Smartforms OTF stream data .
    Try using the follosing FM for the PDF creation and sending email:
    CONVERT_OTF_2_PDF
    CONVERT_OTF_AND_MAIL
    SO_OBJECT_SEND
    CONVERT_OTF_AND_MAIL_NEW (Try this but this FM still uses  the class that you are using currently. But give it a try and see the results)
    Hope this answers your question.
    Thanks,
    Greetson

  • How can I write into a table cell (row, column are given) in a databae?

    How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion? 
    Solved!
    Go to Solution.

    When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
    I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.

Maybe you are looking for