How to insert HTML content in a IVIEW

Hi,
How to insert HTML content in a iview any body help me with the solution.
Thanks & Regards
   kiran.B

Hi,
You can just spit out HTML in the request object:
request.write("<B>Whatever</B>");
Or if you have a single HTML page, you might want to just add it to KM and create an iView from it.
Hope this helps.
Daniel

Similar Messages

  • How to insert HTML content directly in code from JEditorPane ?

    I'm developping an HTML Editor on a JEditor Pane.
    The problem is that a blank is not interpreted, and i've tried to add "& n b s p ;" in the code from a KeyListener added to the VK_SPACE event, or to define an Action to add HTML Spaces. But i didn't achieve to...
    I just want to insert a "& n b s p ;" in the HTML code of the document displayed in the JEditor evry time the SpaceBar is pressed.
    I've tried InsertContentAction() :
    Not a solution :It inserts " & n b s p ;" in the text (it appears litteraly).
    I've tried InsertHTML. But it needs a tag parameter, and in my case, i need no tag
    to be inserted.
    I'm stuck since days... Any help woul be extremely appreciated...

    The code I now have is:
    TextAction actInsertNBSP = new TextAction("insert-space"){    
    public void actionPerformed(ActionEvent evt){
    //Where is the cursor now
    int intInitialCaretPos = text.getCaretPosition();
    try{       
         //Make HTML document to add the html code
         HTMLDocument htmldoc = (HTMLDocument)text.getStyledDocument();
         //Get document input attributes before insert
         AttributeSet atr = kit.getInputAttributes().copyAttributes();
         //Insert tag
         kit.insertHTML(htmldoc,intInitialCaretPos,"<b>\240</b>", 0, 0, HTML.Tag.B);
         //Set stored attributes to input attributes
         kit.getInputAttributes().addAttributes(atr);
         //Set cursor on right position
         text.setCaretPosition(text.getCaretPosition());                    
         }catch (Exception exc){
              exc.printStackTrace();
    KeyStroke kstSpace = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0);
    text.getKeymap().addActionForKeyStroke(kstSpace,actInsertNBSP);

  • How to print HTML contents

    can anyone tell me how to print HTML contents...i needed it urgently
    Thanks

    actually i have a print button on html page....when i click on print button using window.print(); the html page gets printed...but along with it print button is also printed...i dont want print button to be printed...
    this is the issue...
    please resolve it
    Thanks a lot...

  • How to insert business content in BI7

    Hi expert:
               How to insert business content in BI7?I have some example(BW3.0) to follow .  It tells me to active '0plant' in TC 'RSA5' and 'RSA6', but I cant find it.
    Allen

    hi Bhanu:
          thanks! And I have another questions to ask.
          1.Why it tell me 'Application component LO-IO of DataSource 0PLANT_ATTR does not exist'?
          2.how to 'atransfer the hierarchy with Business Content'?
          3.What does 'content delta' use?
         Could u explain it to me particularly?
    Allen
    BR

  • Inserting HTML content into an animated DIV

    Can you, and if so how, insert HTLM content into an EGDE animated Div box? Specificaly an HTML table?  I can get the html code in the box but it won't read/render it as html code. In flash you can tell the program that the contents of the box is html code and it will read it as such but I don't see any way to do that here. I've tried several ways and I can get the code to display in the box but it won't render the code instruction in the boxCan it be done ??
    Thanks
    joel

    Hi,
    1) Your json file is not valid.
    You can copy and paste your datas here: http://jsonlint.com/
    Red commas must be deleted.
          "player": [
                "image": "images/player1.jpg",  //this is the URL I want to retrive
               "name": "player1",
                "image": "images/player2.jpg",
                "name": "player2", 
                "image": "images/player3.jpg",
                "name": "player3", 
                "image": "images/player4.jpg",
                "name": "player4",
    2)An example from http://docs.jquery.com/Ajax/jQuery.getJSON:
    3) compositionReady Tests.
    On compositionReady, i write:
    var profiles = {
                   "player": [
                        "image": "images/player1.jpg",
                        "name": "player1",
                         "image": "images/player2.jpg",
                         "name": "player2", 
                         "image": "images/player3.jpg",
                         "name": "player3", 
                         "image": "images/player4.jpg",
                         "name": "player4",
    console.log(profiles.player[1].image); // this line returns: "images/player2.jpg"
    Note: i deleted the first "[" and the last "]".

  • How to insert the contents of a link in a div container?

    Hi,
    I try some layouts with CSS templates having sidebar. My problem is that when I click on the link (defined as <a href="my_text.htm">Link one</a> for example a new window appears with the contnets of the file. How do I select as target the container of a div tag?
    I tried some javascripts but the result is always the same, the link opens in a new window.
    Thanks in advance
    Chris

    How do I select as target the container of a div tag?
    Using the advanced features of TTM - create a div at the foot of the page. Insert your content into it.
    Link your text in TTM. to the div. Set the positioning, height and width parameters where you want the div content to be displayed on the same page.
    When the page is viewed the div at the bottom of the page is hidden.
    When the TTM link is clicked or moused over the div and its contents appear at the position you set

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to feed html content in Mail App from Indesign

    Anyone knows how Martha Stewart Everday Food Magzine achieved launching the ipad Mail App filled in with HTML body content directly from their digital magazine?
    At the end of each recipe, there is an email icon displayed, and when you click on it ipad mail launches with html content filled in and ready to share with a friend.
    Please help
    Stanly

    Please refer to this, "Scenario eMail/a: Share your article text as eMail"
    http://digitalpublishing.tumblr.com/tagged/Working_in_InDesign
    Hope it helps.
    shimoawazu

  • How to Edit html content of My First Days in ESS

    Hi All,
    My requirement is to change only the html content displayed in My first Days under Life and work event tab.
    Currently it shows content provided by sap.
    e.g ; it displays "Welcome to xyz_Company_name  "  and some dummy content.
    where as we want to customize it as per client requirement i.e. to  display client specific policies and     
    name etc.
    Please help to solve the problem.
    Thanks,
    Zaid

    s.r.e.e wrote:
    I am reading this html file in java class file and displaying the template as it is in jsf page, now when user clicks on edit button one pop up should be opened and entered data should be displayed at appropriate place in layout, on clicking clear content should be cleared.
    Can anyone help me how to write the logic to open a popup using html button instead of a4j:commandbutton in jsf and how can I bind the values to backing bean list without using a4j:repeat using normal html template
    I'm not sure you are going to get any binding happening without a lot of cajoling.
    The real question is why are you trying to write (hardcode?) HTML in a Java class that needs to interact with JSF components?

  • How to attach HTML content to DMS Document?

    Hello,
    I have a requirement in which I have to make a HTML file which contains the current Dispaly on screen, I have to attach this HTML file inside the DMS document.
    For this I am doing following steps.
    1 ) FM SAVE_LIST
    2) FM WWW_HTML_FROM_LISTOBJECT, form this FM I am getting the Internal table which is containing the HTML content.
             a) I am converting this internal table content ot first in XSTRING using FM SCMS_TEXT_TO_XSTRING
             b) And XSTRING to Binary format.
    3) After this I am creating a DMS cocument using FM CVAPI_DOC_CREATE
    3) After DMS document creation I am using FM CVAPI_DOC_CHECKIN to attach HTML file content to this DMS Document.
    Everthing seems to be ok, but when I am using CV03N to view the document, its showing the HTML file bu not showing the original content(HTML)
    Please help to find the problem, Is there any other way from which I could CHECKIN HTML content directly inside DMS document in HTML form without converting it to binary.

    HI,
    I have not understood the requirement.
    As far as I know, HTML need not to be checked in.
    Refer also link below
    Re: some questions on SAP DMS
    May be useful in choice of FM.
    Regards
    Nitin

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute javascript and all....Is there any component for it???? Please help....

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • Font color issue with inserted HTML content in JTextPane (HTMLEditor)

    Hi everyone,
    I have a very serious issue with the HTMLEditor I'm developping. This editor is a little bit special since it is intended to edit blocks of HTML content that are loaded when the editor is initialized.
    You can in fact decide to keep this loaded HTML content or start a new HTML document from scratch. Alright, now my issue is the following :
    When text is loaded, it's properly rendered. I have a functionality which let's you see the HTML code from the HTML document used in the editor, so I can check and see if code is correct, and yes, it's correct.
    The problem is that when I try to change the color attribute of some text on my loaded content, nothing happens ! I don't know what's the matter with this bug, I only have it with the color attribute, with every other attribute everything's fine (font, size, etc.)
    The funny thing is that, after I change another attribute for loaded content, like font family, then changing color attribute funcionnality starts to work again !
    I've also noticed that I don't have any of these problems when I start my HTMLDocument from scratch (when I create a new HTML document and start typing text).
    Another weird thing, is that I have a feed-back feature in my editor which reflects attributes for text over which the caret is positionned. For example, if you put caret over red text, the color combo box displays a red value, you know, just like in MS Word. Well, with my loaded content if I have a red text color and I decide to put it in green, the color combo box displays the green value when I click over text for which I have changed color, but in my JTextPane it's still red !! And when I try to see the HTML code generated nothing has changed, everything is still red !
    There is something really strange here, this means that when I get the attributes of the loaded text from the HTMLDocument, color appears to be green, but when it gets rendered in the JTextPane it's still red and when it gets anlyzed to produce the corresponding HTML code, these changed attributes are not taken into account.
    But the most weird thing above all, is that I don't have this bug everytime, sometimes I start my HTML editor applet and it works fine, and some other times this color issue is bakc there. Is this a known bug for Swing API or not ?
    =============
    This is more or less my technique :
    //I declare a global reference to my HTMLDocument
    HTMLDocument _docHTMLDoc;
    //Create a JTextPane
    JTextPane _tpaEditor = new JTextPane( );
    //Set type content to automatically select HTMLEditorKit
    _tpaEditor.setContentType("text/html");
    //Get a referene to its HTMLEditorKit
    HTMLEditorKit _kitHTMLEditor = (HTMLEditorKit) _tpaEditor.getEditorKit( );
    //I then have a function to create new documents
    void newDocument(){
      _docHTMLDoc = (HTMLDocument) _kitHTMLEditor.createDefaultDocument();
      _tpaEditor.setDocument(_docHTMLDoc);
       //I do other stuff wich are not important to be shown here
    //I then have another function to load content
    void loadContent(){
       //I get content from a HashMap I initialized when I started my applet
       String strContent = (String)_mapInitParameters.get("html_content");
       //I set content for my editor
       _tpaEditor.setText(strContent);
    //Notice.. I have tried many other ways to load this text : via HTMLEditorKit and its insertHTML method, I
    //have also tried to store this content in some reader and make HTMLEditorKit read it... and nothing,
    // I always get the bug
    //To change color it goes like this :
    JComboBox _cboColor = new JComboBox();
    //I correctly initialize this combo with colors
    //then I do something like this
    ActionListener _lst = new ActionListener(){
       public void actionPeformed(ActionEvent e){
          Color colSel = (Color) _cboColor.getSelectedItem();
          MutableAttributeSet mas = new SimpleAttributeSet();
          StyleConstants.setForeground(mas,colSel);
          setAttributeSet(mas);
    _cboColor.addActionListener(_lst);
    //Set Attributes goes something like this
    private void setAttributeSet(javax.swing.text.AttributeSet atrAttributeSet) {       
            //Get current 'End' and 'Start' positions
            int intCurrPosStart = _tpaEditor.getSelectionStart();
            int intCurrPosEnd = _tpaEditor.getSelectionEnd();
            if(intCurrPosStart != intCurrPosEnd){
                //Apply attributes to selection
                _docHTMLDoc.setCharacterAttributes(intCurrPosStart,intCurrPosEnd - intCurrPosStart,atrAttributeSet,false);
            else{
                //No selection : apply attributes to further typed text
                MutableAttributeSet atrInputAttributes = _kitHTMLEditor.getInputAttributes();
                atrInputAttributes.addAttributes(atrAttributeSet);

    hi, friend!
    try this:
    void setAttributeToText(JTextPane pane, int start, int end, Color color) {
    MutableAttributeSet new_att = new SimpleAttributeSet();
    StyleConstants.setForeground(new_att,color);
    HTMLDocument doc=(HTMLDocument)pane.getDocument();
    doc.setCharacterAttributes(start,end,new_att,false);
    It works fine in my Application, hope will work in yours, too.
    good luck.

  • How to insert html table tag in flash.

              i am trying to insert my html table format into flash... but flash doesn't support that html table tags....
    i'm creating a filp book for help manual..  In that we use flash  and html tags... His there any other way to insert html table in to flash...
    give ur suggestions..
    thanks.

    As you say, Flash does not support html table tags.  Create your own tables using textfields and if you need borders around cells use either textfield borders or lines surrounding the textfields.

  • How to insert html table inside java code

    Hi,
    I want to send an email with data in table format(with rows and columns) .Please tell me how to achieve this in java code .I just want to know the code for making the table in java
    Please help me
    Thanks in advance

    NewUser7 wrote:
    Please tell me how to generate html tables in java. .. Do you know how to produce an HTML table in HTML?
    ..i dont have jspI did not mention JSP. Pure J2SE code can produce HTML, though if done in a web-app., it would generally be done using JSP or Servlets.
    Here is an example of producing HTML in J2SE.
    import javax.swing.*;
    class HtmlTable {
         public static void main(String[] args) {
              int[][] values = {
                   {1,3894,5387},
                   {2,4112,4459},
                   {3,4886,6076}
              String prefix = "<html><body><table>\n";
              final StringBuilder sb = new StringBuilder(prefix);
              sb.append("<tr>");
              sb.append("<th>");
              sb.append("Month");
              sb.append("</th>");
              sb.append("<th>");
              sb.append("Unit A<br>Sales");
              sb.append("</th>");
              sb.append("<th>");
              sb.append("Unit B<br>Sales");
              sb.append("</th>");
              sb.append("</tr>\n");
              for (int ii=0; ii<values.length; ii++) {
                   sb.append("<tr>");
                   for (int jj=0; jj<values[ii].length; jj++) {
                        sb.append("<td>");
                        sb.append("" + values[ii][jj]);
                        sb.append("</td>");
                   sb.append("</tr>\n");
              sb.append("</table>");
              sb.append("</body>");
              sb.append("</html>");
              Runnable r = new Runnable() {
                   public void run() {
                        JOptionPane.showMessageDialog(
                             null,
                             new JTextArea(sb.toString(),20,10) );
                        JOptionPane.showMessageDialog(
                             null,
                             new JLabel(sb.toString()) );
              SwingUtilities.invokeLater(r);
    As an aside, those terms are HTML (an abbreviation) Java (a proper name) & JSP (an abbreviation). Please try to use correct upper/lower case when using technical terms.

  • How to insert Captivate content into Dreamvweaver

    Hi,
    so I've finished my first movie and I want to publish it -
    which works, but I want to insert things into XHTML file via
    Dreamweaver. Is there a way how to do it? There are two swf files,
    one html and one javascript. How to make Dreamweaver put this into
    one place inside another file? I thought these two applications
    actually work together... Thanks!
    Skippi

    Alright, I know a bit of HTML, so I've copy-pasted the code
    from the file Captivate exported in DW and everything else that was
    necessary - but still, is not there any more convenient way how to
    do this?
    Thanks!

Maybe you are looking for