How to display sub and sup HTML tags?

Hallo,
I use the htmltext property of the text control a lot for displaying Infotext, but this property can not render then <sub> and <sup> Tags. How can I display Infotext where I need, for example, math formulas within the text flow???
Thanks
Hans

Alex,
Thanks for this information. This framework should meet a lot of my demands, but for this actual project, it's too complex, I only need this 2 tags additional to the existing, and I substituted the <sub> tag by a <font size='-2'> and the <sup> tag by drawing a spezial character (&#8593;). With this drawing of special characters, I can also do a lot.
But nevertheless that's the framework I need for future projects!
Thanks
Hans

Similar Messages

  • How to display images and information

    how to display images and information(e.g. like questions) on a jsp page that stored in a database

    Look As far as i can see....
    Utlimately every file could be expressed as a bytes buffer.
    so say if you have a bean called Choice Bean which is expressed as
    public class ChoiceBean{
       private String choiceid;
       private String choicedesc;
       private byte image[];
       public void setChoiceId(String choiceid){
              this.choiceid = choiceid;
        public String getChoiceId(){
               return this.choiceid;
          public void setChoiceDesc(String choicedesc){
               this.choicedesc = choicedesc;
           public String getChoiceDesc(){
               return this.choicedesc;
           public void setImage(byte image[]){
                  this.image = image;
             public byte[] getImage(){
                  return this.image;
    }QuestionList.java:
    ===============
    public class QuestionList{
         private List<ChoiceBean> choicelist;
          /*Other member variable declarations*/
           public  List<ChoiceBean> getChoiceList(){
                    /*Custom code where you may build the list by querying the DA layer*/
                     return this.choicelist;
         public int search(String choiceid){
                 int index = -1;
                 for(int i =0 ; i < this.choicelist.size() ; i++){
                        ChoiceBean cb = this.choicelist.get(i);
                         if(cb.getChoiceId().equals(choiceid)){
                                index = i;
                                break;
                 return index;
        /* Other member method declarations */
    }and you are retreving List<ChoiceBean> from DB using your query & have created a session attribute / <jsp:useBean> named ChoiceList
    NOTE: sometimes your application server can go out of bounds as you are consuming a lot of memory by creating an arraylist object.
    use the following methodology to display images & choices
    sample.jsp:
    =========
    <jsp:useBean id="QuestionList"  class="com.qpa.dao.QuestionList" scope="session"/>
    <TABLE>
    <%
    /* QuestionList.getChoiceList() is a method which fetches data from the DB & returns it in form of  List<ChoiceBean> */
    List<ChoiceBean> choicelist = QuestionList.getChoiceList();
    for(int i =0 ; i < choicelist.size() ; i++){
    %>
    <TR>
    <TD><%!=choicelist.get(i).getChoiceId()%></TD>
    <!-- calling servlet which renders an images in JPG format based upon given choiceid(unique field) -->
    <TD><IMAGE src="ImageServlet?choiceid=<%!=choicelist.get(i).getChoiceId()%>"/> </TD>
    <TD><%!=choicelist.get(i).getChoiceDesc()%></TD>
    </TR>
    <%
    %>
    </TABLE>
    <%
        session.remove("QuestionList");
    %>
    NOTE: usage of JSTL or any other custom built tag-libraries makes life more simpler in the following case
    ImageServlet.java:
    ===============
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            byte buffer[] = null;
            HttpSession session = request.getSession(false);
            /*getting the QuestionList from the session*/
            QuestionList ql = null;
            String choiceid = new String("");
            try{
                 choiceid = request.getParameter("choiceid");
                 /*getting the QuestionList from the session*/
                ql = (QuestionList)  session.getAttribute("QuestionList");
            } catch(Exception exp){
            if(choiceid.equals("") == false &&  ql != null ){
                List<ChoiceBean> clist = QuestionList.getChoiceList();           
                   assuming that you have created a serach method which searches the entire choice list and would give you
                   the index of that object which is being refered by unique choiceid and returns -1 if not found
                int index =  QuestionList.search(choiceid);
                if(index != -1){
                   ChoiceBean cb = clist.get(index);
                   buffer = cb.getImage();
            if(buffer != null){
                 // assuming that we have stored images in JPEG format only
                 JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(new ByteArrayInputStream(buffer));
                 BufferedImage image =decoder.decodeAsBufferedImage();
                 response.setContentType("image/jpeg");
                 // Send back image
                 ServletOutputStream sos = response.getOutputStream();
                 JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
                 encoder.encode(image);
            } else {
               response.setContentType("text/html");
               response.getWriter().println("<b>Image data not found</b>");              
    }However,i still feel there are few loopholes with this approach where Application Server can eat up a lot of heap space which may result in outofmemorybound exception.
    Hope this might help :)
    REGARDS,
    RaHuL

  • How to Display Sub-Columns using ALV Grid

    Hi ,
      Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
    Thanks,
    Abaper.
    Message was edited by:
            ABAP'er

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • How to display date and time on jsf page

    Hi,
    how to display date and time on jsf page
    we are using 11.2.0.0 jdeveloper on windows.
    thanks
    Edited by: user12187801 on 26-Jul-2012 01:42

    Your question is certainly lacking some information.
    If you want a constantly updating date/time - then JavaScript is your best bet, and Google would find you examples like [url http://www.webestools.com/scripts_tutorials-code-source-7-display-date-and-time-in-javascript-real-time-clock-javascript-date-time.html]this
    If you meant something else, then it's back to you to explain.

  • How to display sub categories ?

    hi
    How to display categories and sub categories and its sub categories.
    We don’t know the depth of sub categories.. so how it can the categories be displayed?
    Could anybody can provide the solution ASAP ?
    Thanks & Regards
    user8729783

    user8729783 wrote:
    hi
    How to display categories and sub categories and its sub categories.
    You can use below:
    <dsp:droplet name="ForEach">
      <dsp:param bean="Profile.catalog.allRootCategories" name="array"/>
      <dsp:oparam name="output">
      <dsp:valueof param="element.displayName"/>
      <%-- diplay subCategories --%>
      <dsp:droplet name="ForEach">
      <dsp:param name="array" param="element.childCategories"/>
      <dsp:oparam name="output">
      <dsp:valueof param="element.displayName"/>
      </dsp:oparam>
      </dsp:droplet>
      </dsp:oparam>
    </dsp:droplet>
    -RMishra

  • How to Display Sub-Columns using ALV

    Hi experts,
        Could someone tell me how to display sub-columns under a parent column using ALV. Do we have any standard Program which has this scenario. points are guaranteed for the right answer.
    Thanks in advance
    Sreenivas

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    I have friends all over Europe, does it matter what number they use to call me? Nope! All incoming calls are free for me.
    The only time you ever have to worry about which number is if you get charged for incoming domestic/international calls.
    You can tag their number (work/home/iphone) and that may show on the CallerID accordingly.
    It should show, John Doe
    underneath,    work/home/mobile
    For example:
    http://shawnblanc.net/images/img-0009-1.png

  • How do I download and saves html files off my website to store and save using Dreamweaver CS3?

    How do I download and saves html files off my website to store and save using Dreamweaver CS3?
    I need to save all files from web and store onto a drive to reupload to a new domain name.  I use Dreamweaver CS3.

    First define your Local Site folder in Dreamweaver.  DW will use this folder to store your site files.
    Go to Manage Sites > New or Edit site.  See screenshots.
    Servers:  Enter your remote server's log-in details.  When complete, hit TEST to see if the connection is working.  If all is well, hit SAVE.
    From the Files Panel (F8), click on Remote Server to show the files that are currently there.  Click the green Down Arrow to GET files from remote server to your local site folder.
    Nancy O.

  • BC won't allow me to insert code (scripts) between the /body and the /html tags.

    Hi guys,
    So I have this weird problem. I'm trying to insert some codes between the </body> and the </html> tags in the page templates. It's saving it. But if you check the page, the code is showing before the </body>, not after. Here's the code that I'm trying to insert.
    <script src="http://i.simpli.fi/dpx.js?cid=1534&action=100&segment=198566&m=1"></script>
    I have also tried adding this code by downloading the templates through ftp, adding the code, then uploading it to the server. Same thing. I even added type="text/javascript" in the code. Still no go. BC wouldn't insert it between </body> and </html>. Any ideas guys?
    - Jeff

    So an update.
    I was told by Adobe chat support to try adding the script after the body via javascript.
    So I added this before </head>
    <script type="text/javascript">
    var script = document.createElement('script');
    script.src = '//i.simpli.fi/dpx.js?cid=1534&action=100&segment=198566&m=1';
    script.type = 'text/javascript';
    $("html").append(script);
    </script>
    Still not working. Any ideas guys?

  • NO strike and s HTML tags?

    I have Dreamweaver CS5 and I don't see strike and s html tags, why they aren't available in Dreamweaver CS5 ?

    mari8899 wrote:
    html 4.01 supports both tags, see here
    And expecting that all website world wide will just jump into html5 or xhtml1 is not realistic.
    If you look at the list of elements you link to above, you'll see that both strike and s are marked with a D, which means deprecated. For an explanation of deprecated, see the HTML 4.01 specification here: http://www.w3.org/TR/1999/REC-html401-19991224/conform.html#deprecated.
    In short, it says "A deprecated element or attribute is one that has been outdated by newer constructs." Note that the specification is dated December 1999. Nobody expects everyone to start using HTML5 immediately, but demanding support in Dreamweaver CS5 for tags that were considered outdated 11 years ago is certainly not realistic.
    If you don't want to use CSS to strike through your text, use the <del> tag instead. It's still valid: http://www.w3.org/TR/1999/REC-html401-19991224/struct/text.html#edef-del.

  • How to display Lines and Boxes in SAP Script

    hi,
    Can any one help me how to display Lines and Boxes in SAP Script.
    Regards
    kiran

    The SAP printer drivers based on page-oriented printers use these commands when creating output whereas the line printers and non-supported page-oriented printers ignore these commands.
    Syntax:/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    This command draws a box of the specified size at the specified position.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH determines the width of the box.
    Default: WIDTH value of the SIZE command.
    HEIGHT determines height of the box.
    Default: HEIGHT value of the SIZE command.
    FRAME determines the thickness of frame.
    Default: 0 (no frame).
    INTENSITY determines the box contents as a grayscale percentage.
    Default: 100 (full black)
    The other details I guess is provided by friends who have posted before me.
    Regards,
    K.Sibi

  • How to display both " " and " " sign in report

    Hello,
    I have a query returns a report which has a field that contains both less than and greater than "<" ">" symbols. For example,
    select
    columnA||' {less than sign}'||columnB||'{greater than sign}' columnAlias
    from tableA;The problem is that the report only display the value of columnA while columnB is ignored. My guess is that the "<"">" is the opening and closing brackets used in HTML, so when generating the report the text between the "<" and ">" are treated as a HTML tag.
    Therefore, my question is: Is there a way to bypass it and display the value of the signs and field correctly?
    Thanks in advance!

    Apply the <tt>htf.escape_sc()</tt> function to the query output:
    select htf.escape_sc(columnA || '&lt;' || columnB || '&gt;') columnAlias
    from   tableA;(Tip: use the HTML character entities *&amp;lt;* and *&amp;gt;* to display "&lt;" and "&gt;" on the OTN forums.)

  • How to use add image in HTML tag

    Hello frndz
                     i  m working on text chat application in adobe  air.using <mx:html/> tag for dispalying text and  images(smiley).but the font size fo flex is diffrent and html diffrent.i  mean i m using 10 font size but it looks too large on  <mx:html/>  component.is there any way to cast them in same size.
    The second and major problem is that it can not add images to html  tag.when i m giving images like:-private var txt:String="<img  src='src\smily\tongue.gif'/>" .
    it shows nothing but when i give images through http path it shows  images on html componenet.
    can any body explain me the problem.
    Thanks And regards
      Vineet Osho

    thanks Alot René Bühling for  your quick reply.but the link u mentioned ith reply is not working for  me.
    ok can u tell me how can i manage my flex font  size 10 to  <mx:html tag 's font size 10.
    i think there is large difference  between flex font and html font.so please guide me for that.
    Thanks  Alot
    Vineet osho

  • How to change inner content of HTML tag using HTMLDocument?

    I want to change the inner content of an HTML tag from a HTMLDocument. The tag is like
    <span id ="id1">Replace me</span>.
    So I want to change the text "Replace me" inside the span tag and replace it with an other text.
    I can get the span element using
    HTMLDocument.getElement("id1")
    I have tried many things with the Element instance i got from getElement. But I find no way to change the inner content of the HTML element. Any ideas?

    If I use JDK 1.5 the SPAN tag works, so I checked the core of the problem which is inserting HTML code in an HTML tag.
    setInnerHTML works fine for block tags like DIV but not if the tag is a leaf element like the SPAN tag. I have tried to use the following code for leaf elements:
    Element elem = m_htmlDocument.getElement(id);
    int nStartOffest = elem.getStartOffset();
    int nEndOffset = elem.getEndOffset();
    int nLength = nEndOffset - nStartOffest;
    m_htmlDocument.replace(nStartOffest, nLength, html, elem.getAttributes());
    This works, but only if the new HTML string does not contain HTML tags like a link <href..... >. If the string contains HTML tags the replace method masks all characters like < or >. So the link is not shown as link in the HTML page but as HTML text.
    The next thing I have tried is using
    m_htmlDocument.setOuterHTML(elem, html);
    This works too but it replaces the whole original HTML element like the SPAN tag.
    So there is still the question how to insert HTML text into a leaf Element in a HTMLDocument.

  • How to display Two frames in HTML....

    Hi,
    Can someone please advice me on how to display two frams on one page without using FrameSet...
    Thanks,

    Hi,
    Thank you for your reply...
    I already have something that i did in Applet but i don't want to use Applet....
    The problem with frameset is that i will be adding documents Types Dynamically in HTML List and after clicking the Document Type I want to display Image depending on what Document Type is clicked...
    Both the DOCUMENT TYPE and IMAGE, I want to create DYnamically. I don't want to create Two HTML Files (one for Image and One for LIST) and then open it from Another HTML Which contains FrameSets...
    I hope you get my point....
    Is there any other ways i can do this....
    Any help will be greatly appreciated...

Maybe you are looking for

  • Why can't I use my visa credit card?

    I was trying to make and apple ID account and I failed as my visa credit card or my visa debit card was not accepted and I couldn;t understand. Please help me to make my account.

  • How do I get iTunes to read and import track information?

    How do I get iTunes to read and import track information from compilation CDs? Typically, the compilations have been burned to disk using iTunes or Toast 8 Titanium. I have checked data boxes as available with both softwares. My REGA Planet CD player

  • Show selected nodes of hierarchy in query

    Hey Folks, I'd like to display a hierarchy in a query. The user has to select the interested nodes and then show them as queryresult. In this context it doesn't matter if there are posted values or not. I tried a query without any keyfigure. This que

  • Capitalised value from legacy system

    My client tried capturing all costs from previous years i.e. before launch of PS from a legacy system. So for this they created WBS for earlier years. Posted actual costs through Manual Allocation through FI postings. For this they created a dummy co

  • How add a host in EM Grid Control

    Hi everybody !! I am having problems at identifying like can add one host in the Enterprise manager grid control for monitoring a database that containg the host. I have install EM grid control in VMware with SO windows XP. was installed my repositor