How to put back html tags

Hi, I have a program that reads an html file, parses the html tags, now I execute code, and then would like to append the original file with my results...
How would I put back in the html code that I parsed out? Or would I have to go through it & search for where the information ends, like right before the </body> tag, and then write in html code there...
What do u think?

yes, what I did, was read in each line, parse and put into a new StringBuffer... and finally save this into an ArrayList to manipulate it in the program...
What I'm doing now, is trying to rewrite the html file, by
PrintWriter cout = new PrintWriter (new
                              FileWriter ("scores.html"));
and then
cout.print("<html>");
etc, etc...
and fill in the scores as
cout.print(<li>);
cout.print(ArrayList.get(i)); //the saved score
etc.
Right now, this isn't writing to the html file, so I wonder if PrintWriter is the right thing to use...
Thanx for ur help!

Similar Messages

  • How to use the HTML tags in the reports.

    hi.
    can any one tell me how to use the HTML tags in the reports.
    i m using the forms 10 g rel 2 and reports 10 g rel 2 and application server 10g rel 2.

    Set the Contains HTML Tags property of an object to Yes, then the tags in the object's text (if any) will be used to format the object.

  • Apple Aluminium Wireless Keyboard - How to put back UP arrow key

    Apple Aluminium Wireless Keyboard - How to put back UP arrow key
    Does anyone know how to put back the UP ARROW key that has fallen off?
    The parts are in good condition. It must have caught something and it fell off.
    Thanks.

    http://www.ifixit.com/Answers/View/25695/Howto+get+the+down+arrow+key+intoplace

  • Al my apps in my ipad is lost how to put back in my ipad

    al my apps in my ipad is lost how to put back in my ipad

    If you do not have backup.
    Download past purchase
    http://support.apple.com/kb/HT2519

  • How to put back onscreen keyboard

    how to put back onscreen keyboard?

    Hi,
    I also wanted to get a number of files back out of the trash, but the Put Back option wasn't available.
    I tried everything I could find in this forum with no success, then I found something that WORKED:
    1/ Open Trash window
    2/ Open another Finder window with the folder you want to return the items to (maybe create one if there are multiple destinations - sort out later)
    3/ Select the files in Trash that need putting back, then drag them to the other finder window.

  • How to put full HTML in an outputFormatted or something else?

    So i have a field that contains some html for example
    <p><strong>This is important</strong> so please read it<br/>And a second line</p>When i put this is in an outputFormatted:
    <af:outputFormatted value="#{myBean.value}" id="ot1"/>The text is shown on the page but when i look at the source, this is what i get:
    <p>This is important so please read it</p>As you can see, the strong tag has been removed and the second line is also gone...
    How can i achieve it so that everything is parsed exactly as i pass it? Or do i need another component instead of the outputFormatted?
    Edited by: Yannick Ongena on Sep 18, 2011 1:39 PM
    Edited by: Yannick Ongena on Sep 18, 2011 1:40 PM

    Yannick,
    af:outputFormatted is designed to only support certain HTML tags, and cleans up the rest (see [url http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_outputFormatted.html]the docs)
    You can use af:outputText with escape=false, just be sure to read [url http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_outputText.html]the docs and make sure you don't open yourself up to cross-site scripting attacks
    John

  • How can I eliminate HTML tags from Oracle Text Snippet?

    I perform a search on many tables and on many columns of those tables.
    Some of those columns are VARCHAR2 and some CLOB.
    Also, some of the searchable data are HTML and some are plain text.
    My problem is that ctx_doc.snippet fetches the HTML tags.
    For example I get this, as a snippet result in one of my searches: Qual Germany n1 &lt;p&gt;Test Qual Germany n1&lt;/p&gt;
    I want the result to be fetched without the HTML tags.
    In my index configuration I have used NULL FILTER and HTML_SECTION_GROUP.With that configuration I managed to eliminate the HTML tags but not in all cases!
    For example:
    I search table CONTENTS columns TITLE(VARCHAR2) and MAIN_TEXT(CLOB)
    I created the following procedure that concatenates the two columns:
    CREATE OR REPLACE PROCEDURE CONTENTS_PROC( p_id in rowid, p_lob IN OUT clob)
    IS
    BEGIN
    FOR c1 IN (SELECT main_text||' '||title data FROM contents WHERE ROWID = p_id)
    LOOP
    dbms_lob.copy( p_lob, c1.data,
    dbms_lob.getlength( c1.data ));
    END LOOP;
    END;
    I created a user Datastore:
    BEGIN
    ctx_ddl.create_preference( 'content_trans_datastore', 'user_datastore' );
    ctx_ddl.set_attribute( 'content_trans_datastore', 'procedure', 'CONTENTS_PROC' );
    END;
    and finally I create the index:
    CREATE INDEX content_trans_ot_idx ON contents(ORACLE_TEXT_COLUMN)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS ('datastore content_trans_datastore SYNC(ON COMMIT) STORAGE INDEX_STORAGE filter ctxsys.null_filter section group ctxsys.html_section_group');
    When I perform the search on those data: &lt;p&gt; &lt;strong&gt;Test Doc-Test &lt;/strong&gt; &lt;/p&gt; the snippet I get is: Test Doc-Test.
    That's fine, the html tags are removed!
    In another case I search table NCP columns NAME(VARCHAR2) and BODY(VARCHAR2)
    I created the following procedure that concatenates the two columns:
    CREATE OR REPLACE PROCEDURE NCP_PROC( p_id in rowid, p_lob IN OUT clob)
    IS
    BEGIN
    FOR c1 IN (SELECT name||' '||body data FROM ncp WHERE ROWID = p_id)
    LOOP
    dbms_lob.copy( p_lob, c1.data,
    dbms_lob.getlength( c1.data ));
    END LOOP;
    END;
    I created a user Datastore:
    BEGIN
    ctx_ddl.create_preference( 'ncp_trans_datastore', 'user_datastore' );
    ctx_ddl.set_attribute( 'ncp_trans_datastore', 'procedure', 'NCP_PROC' );
    END;
    and finally I create the index:
    CREATE INDEX ncp_trans_ot_idx ON ncp(ORACLE_TEXT_COLUMN)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('datastore ncp_trans_datastore SYNC(ON COMMIT) STORAGE INDEX_STORAGE filter ctxsys.null_filter section group ctxsys.html_section_group');
    When I perform the search on those data: test &lt;strong&gt; &lt;/strong&gt;http://deleteme.com the snippet I get is: test &lt;strong&gt; &lt;/strong&gt;http://deleteme.com!!!!!!!!!!
    How is this possible? Why in the first case the HTML tags are eliminated and in the second case they are not?
    Thanks,
    Margarita
    Edited by: user13312701 on 07-Sep-2010 08:51

    Doing various tests I found out that the problem is when I need to search in multiple columns of a table.
    That is when I create a user_datastore that uses a procedure that concatenates the columns.
    And especially when the data with the html tags is in a VARCHAR2 column.
    e.g
    --create the table*
    CREATE TABLE CONTENT_TRANS (content_trans_id NUMBER,
    main_text CLOB,
    title vARCHAR2(2000),
    oracle_text_column VARCHAR2(1));
    alter table "CONTENT_TRANS" add constraint CONTENT_PK primary key("CONTENT_TRANS_ID") ;
    --Insert dummy data*
    Insert into CONTENT_TRANS
    (CONTENT_TRANS_ID,MAIN_TEXT,TITLE)
    values
    (1,'lorem','lorem <p>qualification</p> 2.1 ');
    Insert into CONTENT_TRANS
    (CONTENT_TRANS_ID,MAIN_TEXT,TITLE)
    values
    (2,'lorem','lorem <br>qualification</br> 2.1 ');
    --CREATE THE procedure that concatenates main_text(CLOB) and title(VARCHAR2)*
    CREATE OR REPLACE PROCEDURE CONTENT_TRANS_PROC( p_id in rowid, p_lob IN OUT clob)
    IS
    BEGIN
    FOR c1 IN (SELECT main_text||' '||title data FROM content_trans WHERE ROWID = p_id)
    LOOP
    dbms_lob.copy( p_lob, c1.data,
    dbms_lob.getlength( c1.data ));
    END LOOP;
    END;
    --Create the user datastore*
    BEGIN
    ctx_ddl.create_preference( 'content_trans_datastore', 'user_datastore' );
    ctx_ddl.set_attribute( 'content_trans_datastore', 'procedure', 'CONTENT_TRANS_PROC' );
    END;
    --Create the index*
    CREATE INDEX content_trans_ot_idx ON content_trans(ORACLE_TEXT_COLUMN)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS ('datastore content_trans_datastore SYNC(ON COMMIT) filter ctxsys.null_filter section group ctxsys.html_section_group');
    exec ctx_doc.set_key_type('PRIMARY_KEY');
    --Perform the query
    SELECT SCORE(1),ct.content_trans_id, ctx_doc.snippet('content_trans_ot_idx', ct.content_trans_id, 'lorem') as snippet
    from content_trans ct
    where contains(ct.ORACLE_TEXT_COLUMN, 'lorem', 1) > 1;
    Results WITH NOT WANTED HTML TAGS:
    6     1     <b>lorem</b> <b>lorem</b> &lt;p&gt;qualification&lt;/p&gt; 2.1
    6     2     <b>lorem</b> <b>lorem</b> &lt;br&gt;qualification&lt;/br&gt; 2.1
    Edited by: user13312701 on 13-Oct-2010 01:18

  • How to put back in XCode 4.5.x all provisioning files under devices?

    How do i replace/put back all provisioning profiles that I have accidently deleted and start over from scratch with the profiles? I am using macbook air with OS X 10.8.2. Any help will be appreciated and helpful to a beginner developer to this Mac OS X platform.

    Here's one more bit of information from the Console:
    9/30/12 10:09:32.361 AM com.apple.mdworker.i386.0: objc[2130]: Class NLAssertionHandler is implemented in both /Applications/Microsoft Office 2011/Microsoft Outlook.app/Contents/Library/Spotlight/Microsoft Outlook.mdimporter/Contents/MacOS/../../../../../../../Office/mbuinstrument.fra mework/Versions/14/mbuinstrument and /Library/Spotlight/Microsoft Office.mdimporter/Contents/MacOS/../Frameworks/MetroFramework.framework/Version s/12/MetroFramework. One of the two will be used. Which one is undefined.
    9/30/12 10:09:32.456 AM mdworker32: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    I see these messages repeated periodically in the Console, output by mdworker.  Do these messages indicate some kind of MS Outlook plugin problem that might be preventing Spotlight from working?  I'm running Outlook for Mac 2011 version 14.2.4 (120824).  Bear in mind the exact same Outlook version was running without any trouble before my Lion 10.7.5 reinstall, and works just fine on an older MacBook Pro running 10.6.8.  Spotlight worked OK on this machine (before my 10.7.5 reinstall) and works just fine on my 10.6.8 MacBook Pro.
    -Tim

  • How to turn of HTML tags in Email Messages?

    My BB8830 World Edition on Verizon continues to show full html tags - e.g. <http://www.oracle.com/dm/global/opn.gif> - instead of just the link, which makes any email with links extremely difficult to read as the full html tags display in the middle of a sentence or para.
    Any idea how to turn this off?

    You'll have to wait for Verizon to release OS 4.5 for your device.  Once you upgrade your device, you will be able to view HTML email.
    There are also third party packages (that you'd have to pay for) available to read HTML email, but the OS should be available within the next few months.  Then again it is Verizon, and they tend to drag their heels on updates, so....
    Jerry

  • How to put an HTML file into JEditorPane

    Hi
    I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this source code to Jeditor pane.
    Thanks
    Srikant

    hi srikkant,
    ur html code is inside the source code..? are you working on applets..? if ur html file can be read as a file and the file stream can converted to a string and put into a Jeditor pane using the setText() method. for editing HTML text a editor called javax.swing.text.html.HTMLEditorKit can be used.
    Refer to JAVA API for further clarifiactions and examples.

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • How do put back every thing i restore back into my ipod touch

    how do i put back everything i had on my ipod that i restored plzzzz help!

    me to need muisc back

  • User template folder moved to trash how to put back in sytem library

    moved user template folder to trash by mistake how do i put it back in the system library

    Then, you should have gotten an authentication dialog box, assuming that the account is an admin one. If not, then you'll have to change the permissions on the folder. To do that, launch the Terminal.app in /Applications/Utilities/, copy and paste in this one-liner into the window that pops up, hit the return key. at the Password: prompt, carefully enter your admin password (since nothing shows up in the window), and hit the return key.
    sudo chmod -R root:admin ~/Desktop/Library
    When the normal $ prompt returns, copy & paste this one-line in and hit the return key:
    sudo mv ~/Desktop/Library /System/
    That should do the trick, moving the correctly permissioned folder back to its normal place. If so, it should be safe to restart the machine. If not, then my next suggestion is to reinstall the software.

  • How to responce back HTML format to MVC using asembler API

    Hi,
    Now we are trying to build integration between MVC Web Application on Seesar2 framework(http://www.seasar.org/en/) and endeca commerce 3.1.1.
    In order to responce back the HTML page from endeca based on the query executed by MVC side, assembler API should return the format of HTML, however, it seems that Assembler API actually returns the contentItem data with which cartridge should be used, so assembler API responce as is cannot be used as HTML page output.
    Is there any way to generate the HTML page format using assembler API ?
    Also I've found following forum saying that Assembler API can be called by Spring MVC, but is it also applicable for other framework than spring ?
    https://qa.endecacommunity.com/questions/149/creating-endeca-dispatcher-using-spring-mvc-instead-of-assemblerjsp-in-endeca-310
    Re: How to use Spring MVC instead of assembler.jsp in endeca 3.1.0
    Thanks,
    Yuki

    Instead of writing HTML directly why not write an XML representation of your data and then use XSLT to create an HTML view and a PDF view. PDF can be generated from XML using FOP (http://xml.apache.org/fop/index.html).

  • How to put back the icons in the dock

    My 3-year old son accidentally deleted the icons on the dock of my ipad.  where do i get the icons for settings, safari, mail and gallery and how do i put it back in the dock?
    thanks.

    They can't be deleted. They can be moved by holding one until they wiggle. Look on other pages or in any folders created by putting one app on top of another one. You can also go to settings - general - reset - reset home screen layout to return the app layout to the original look.

Maybe you are looking for

  • How to create the default empty work book with company logo and address????

    Hi Guru's I am working in ECC5.0 (BW 3.5), i wann create the default empty work book with company logo and company address. so when i am executing any query's that should open in the default empty work book. greatly appreciated your help. will assign

  • Macbook won't download purchased songs...

    I recently bought an album, ok two, on my phone and my macbook won't download anything but the booklet. What gives? The Macbook is authorized to access my account in iTunes. The phone is authorized on my Macbook. I can download songs purchased on the

  • Macbook pro retina display 16GB

    i am wanting to get a mac book pro retina display with 16GB ram...I mostly want to store music on this mac...what if i dont have enough room to put my music library files on this mac? whats the best thing to do?

  • SCVMM 2008 R2- reapplication administration console

    Hi I help Me, You can reapply or make redundant management console SCVMM 2008?..... so it can only be investigated in 2012 !That's right! thx BEP

  • ICloud Restore Issue?!

    I recently updated to the iOS 8 Beta on my iPad Mini and when I went to restore from an iCloud Backup it is saying that I need to enter the password for [email protected] which is NOT my Apple ID that is used on my iPad Mini. I am really confused as