How to add html tag in c:set value

If i put the html tag around, like this <c:set var="test" value="This is a <b>nice</b> page." /> , the <c:out value="${test}" /> will print the bold tag around "nice" . How to get the actually string "nice" to be bold instead? Thank you!

Set the 'escapeXml' attribute of c:out to false so that it doesn't escape XML (and so also HTML) entities.

Similar Messages

  • How to add HTML tags to 'mailto' body

    i'm trying to figure out how to add font color and bold to an
    email body.
    i have the code working properly to build the email and drop
    the text in the correct locations. however, when i try to add the
    html tags to the process, it doesn't work.
    when i use the escape command to URLencode the input, it goes
    through and you can read the html tags in the email. if i don't
    escape the text/tags, the mailto command fails completely.
    dual 2.5 g5, 10.4.8, 3gig ram, plenty storage
    flash 8pro. ripping flash8 swf, actionscripting 2.0
    here's my current code:
    emailto =
    escape("[email protected],[email protected]");
    emailsub = escape("REQUEST - order");
    tempemailbody = "<B><FONT COLOR=\"#2B6EB5\">" +
    header + "</FONT></B>other text = " + somethingelse +
    "<br>";
    emailbody = escape(tempemailbody);
    emailvar = "mailto:" + emailto + "?subject=" + emailsub +
    "&body=" + emailbody;
    getURL(emailvar, "_blank");
    please advise.
    thanks in advance
    jason
    ps. i tried adding this post twice and it didn't appear in
    the topic list. sorry if the previous ones eventually go thru

    You can't send HTML email right from Flash. You will need to
    use a
    server-side script that adds the necessary headers into the
    email.
    Dave -
    Head Developer
    www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to add html tags to textarea item

    hello,
    i want to have links or bottons that will put html tags in my textarea item
    for example if i will press a link name bold it will put the bold open and close html tag.
    i want to be able doing so without erasing the already text i have in my textarea item.
    thanks
    p.s
    i can't use the textarea with html editor item.

    thanks it works ( still have one more question)
    i used Balaji Chellappa suggestion
    but change it a little bit :
    a href="#" onclick="javascript:document.getElementById('P3_MESSAGE_DESC').value=document.getElementById('P3_MESSAGE_DESC').value + ' B> /B>';">Bold /a>
    one more question:
    this javascript add the bold tag to the end of the textarea item.
    how can i add it the tag where the cursor is ?
    if it's to hard (i'm not javascript expert) i just want to add the tag a line under the text
    for example:
    if my test is : test test test
    and i push the bold link it will be:
    test test test
    b> /b>
    instead of :
    test test test b> /b>
    thanks
    p.s
    how can i put html tag in my posts ?

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • How to use HTML Tags in Smartforms

    Hi,
    Can you please help me out in knowing how to use HTML tags in Smartforms,
    suppose i want to display some text in BOLD i should use the tag </b> as shown
    </b>  Header Information <b>
    regards
    Ranveer

    Hi Ranveer ,
        check this following links,
      hope this wil helps you
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/smartform%20in%20abap.pdf">check this link,to know abt HTML in smartforms</a>
    rgds,
    shan

  • How to use html tags inside java

    I have to retrieve data from db and return the data to my index.jsp page.
    Its working fine.
    But I have o display in a pable format using html. How to embed html tags? I tried this way. Its not working. Any suggestions?
       String htmlOpen = "<html>";
        String htmlEnd = "</html>";
        String titleOpen ="<title>";
        String titleEnd ="</title>";
        String bodyOpen = "<body>";
        String bodyEnd = "</body>";
        for (int i = 1; i <= cols;i++){
            output = output + rsmd.getColumnName(i);
         while (rst.next()) {
            for (int i = 1; i <= cols;i++){
                      output = output +rst.getString(i);
      result = htmlOpen + titleOpen + titleEnd + bodyOpen + output+ bodyEnd + htmlEnd;
        stmt.close();
        conn.close();
         return htmlOpen;
      }

    See those charcters in your JSP that look like "<%"? Those characters mean: "the code after this is Java - interpret it as such".
    Then when you close your Java block with "%>", it then means: "the code after this is html - output it to the request response that is being built. However, within the html code, the syntax "<%= java_variable_name %>" means "take the current value of that Java variable and insert it into the html output".
    Here's an example:
    %>
    <table cellspacing="2" cellpadding="2" border="1">
    <tr>
    <%
        String s = null;
        for (int i = 1; i <= ncol; i++)
          s = rsmd.getColumnName(i);
    %>
      <th nowrap><A HREF="<%=sortLink.toString()%>&sortby=<%=s%>"><%= s %></th>
    <%
    %>
    </tr>
    <%
        if (rs == null || numRows <= 0)
          %><tr><td colspan="10" nowrap>No data available for specified query.</td></td><%
        else
          int rowCounter = 0;
          while(rs.next() && rowCounter < PAGE_SIZE)
            rowCounter++;
    %>
      <tr><%
            for (int i = 1; i <= ncol; i++)
              s = rs.getString(i);
              if (rsmd.getColumnName(i).equalsIgnoreCase("password"))
                    %><td nowrap>********</td>
    <%
              else
                %><td nowrap><%= s %></td>
    <%
            %></tr><%
    %>
    </table>This is JSP 101, what they teach in the first hour of class...
    Here's a decent JSP tutorial:
    http://www.jsptut.com/

  • How to aviod html tags from Report column heading while export to csv

    Hi All,
    How to aviod html tags from Report column heading while export to excel.
    We used like Employee<br> Department in column heading, but the problem is the <br> tag also exporting into csv file.
    If any column data 3/2009 formatt the it will exporting as marh 2009.
    Please help on this.
    Thanks,
    Nr
    Edited by: pnr on Jul 5, 2011 5:00 AM

    Hi Nr
    Here is how I approached this problem.
    Go to report attributes tab
    under column attributes check PLSQL radio button.
    Create a function to return the heading of your report as shown below in your database.
    create function get_heading return clob as
    v_request VARCHAR2(20) := V('REQUEST');
    v_col_heading CLOB;
    begin
    IF INSTR(v_request,'FLOW_EXCEL_OUTPUT',1) > 0 THEN
    v_col_heading := 'Employee Number:Employee Name';
    ELSE
    v_col_heading := 'Employee breaktag Number:Employee break tag Name';
    END IF;
    return v_col_heading;
    end;
    Type the function below under ( Function returning colon delimited headings:) as follows.
    return get_heading;
    Similarly for data base it on PLSQL function body returning SQL and follow the same approach as headings.
    Hope this helps.
    Thanks
    Sukarna
    Edited by: user513776 on Jul 5, 2011 2:24 PM
    Edited by: user513776 on Jul 5, 2011 2:27 PM

  • XML editor with buttons to add HTML tags via CDATA

    Hi:
    Does anyone know an XML editor with buttons to add HTML tags via CDATA?
    <?xml version="1.0" encoding="UTF-8"?>
    <content1>
    <text1>
    <![CDATA[<p><b>]]>THE ORIGINS.<![CDATA[</b><br />]]>
    He was born ...
    <![CDATA[<br /><br /><p>]]>
    Thanks in advance

    I just did a google search of "XML editor with buttons to add HTML tags via CDATA" and found this.
    I usually just write in all my XML by hand that included the CDATA tags if needed.
    http://activeden.net/item/flash-xml-editor-version-2/47884
    I hope this helps?

  • How to Add/Concatenate to a text field, values selected in a combo box

    I have a combo box form field that allows the user to select a value from a list and click on an Add button. The Add button should add/concatenate the vaue selected to a text field in order to create a list of values selected. I'm not sure how to do this using Javascript in Acrobat? I know I need to add the javascript to the Add button's Mouse Up action. Any help would be greatly appreciated. Thanks!

    Thanks so much - it works!
    >>> "Gilad D (try67)" <[email protected]> 9/25/2013 9:16 AM >>>
    Re: How to Add/Concatenate to a text field, values selected in a combo box created by Gilad D (try67) ( http://forums.adobe.com/people/try67 ) in JavaScript - View the full discussion ( http://forums.adobe.com/message/5712118#5712118 )
    Let's say the text field's name is "Text1", and the combo is called "Combo1". You can then use this code as the MouseUp script of the Add button:
    var f1 = this.getField("Text1");
    var f2 = this.getField("Combo1");
    if (f1.value=="") f1.value = f2.value;
    else f1.value = f1.value + ", " + f2.value;
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5712118#5712118
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5712118#5712118
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5712118#5712118. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in JavaScript by email ( mailto:[email protected].com ) or at Adobe Community ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=3286 )
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to Include html tag in xml

    Hi,
    Is there any way to include html tags in xml?
    For Example, I'm using xsl to get the value of FIELD_1 from fetch.xml
    In fetch.xml, I have the tag
    <FIELD_1>
    <font color='#8080ff'>&#160;<font face='Times New Roman, Times' size='28'>Testing font and color</font></font>
    </FIELD_1>
    But If I tried to read the value from xsl like <xsl:value-of select="FIELD_1"/> I'm just gettig the display 'Testing font and color' without the specified font and color....
    How to achieve this?
    Thanks
    Selva.

    Hi,
    Thanks for the input.
    I tried with the below code
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    But I'm getting the below error...
    "An invalid XML character (Unicode: 0xa0) was found in the element content of the document."
    Below is the code included in the xsl....
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="Values"><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm" page-width="21cm" margin-top="3cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm">
    <fo:region-body/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body">
    <fo:block space-after="5mm" font-family="Arial"><xsl:copy-of select="FIELD_1"/></fo:block>
    </fo:flow> </fo:page-sequence> </fo:root> </xsl:template></xsl:stylesheet>
    Is there any mistakes in the above code?
    Regards,
    Selva.

  • How to hide html tags in RSS reader

    Hello everyone!
    I need a help. I`m not a programmer, but I make a very simple RSS reader based on this tutorial http://mobile.dzone.com/articles/building-mobile-rss-reader ... Application works perfect, but I have a problem into DetailsView (rss feed item)... In this view application show me a all html tags into rss feed (or articles on my website)... Content into Description (in application) begins with <p> margin-left: 4px,.... and other html tags. Please, tell me how I set to hide this tags and show only a article content (text)..I
    I will be really greatful for any help!
    Best regards,
    Rok

    Unfortunately no, there is not. It's absolutely needed so that site studio knows how to load the pages. One thing you can do is to use SSPU (site studio publishing utility) to generate static pages and then use a scripting language, such as perl, to strip out all the site studio-specific code from those pages.
    Sorry, but that's one big downside to using site studio.

  • How to Add meta tag in bsp

    hi experts,
    we have a bsp page,in which i need to declare meta tags,like in html.
    but though i delare it,while i debug the code,I can see its not  passing through the meta code.
    please advise me how to add a meta tag in bsp.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="crm_bsp_ic" prefix="crmic" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%
      DATA: lv_xml         TYPE string.
      lv_xml = controller->configuration_descr->get_config_data( ).
    %>
    <%meta http-equiv name=  "WorkspaceId"  content= "a2ac9b45-65bb-4d25-9fb6-d9478280fa19"  /% >
    <%meta  http-equiv name="SmartTags" content="SAPCRMCREATEACCOUNT" /%>
    <chtmlb:config xml  = "<%= lv_xml %>"
                   displayMode = "<%= controller->view_group_context->is_view_in_display_mode( controller ). %>"
                   mode = "RUNTIME" />
    Edited by: Anu_87 on Jun 29, 2010 6:50 PM

    Hi,
    there are no meta tags in HTMLB !!   If you really need to include these in your development, you have to do it with the old HTML tags like this:
    <html>
    <head>
    meta name="author" content="Anna Lyse"
    meta http-equiv="expires" content="Sat, 01 Dec 2001 00:00:00 GMT"
    meta name="keywords" lang="en-us" content="vacation, Greece, sunshine"
    </head>
    </html>
    I cannot enter the correct code for META because the @§$%&/ configuration in this forum is triggering an error page !!

  • How to add alt tags to photos in iWeb?

    How do I do this? Both for accessability and to allow users to hover over the image and get a caption.
    Thank you!

    You have to post process your html pages (editing after publishing).
    You need to add title inside some html tags, three that I know of:
    1. img src tag
    2. a href tag
    3. area href tag
    ie:
    a href="javascript:void(0)" title="blah blah"
    or
    img src="blah blah" title="blah blah"
    Now, the bad part is that you have to do this EVERY time you publish your sites.
    unless, you have a script to do heavy lifting

  • How to get html tags from JEditorPane ??

    Hi All,
    I have a html page that i am displaying in a JEditorPane with all support to styles and images as i have set content type of pane to text/html.
    When a user selects some text in JEditorPane, i want to get the content of the selected text, but not from text, but from HTML tags. In short what i want to know how can i get the html tags of the selected text in JEditorPane.
    Please tell me how to solve this problem.
    Thanks in advance
    Kind regards
    Chetan Chandarana

    thats very correct, but things is that the tags which i displayed are not getting retrived back from the textpane, specially some new line characters are coming.....any reason ?
    thanks for the reply
    kind regards
    Chetan Chandarana

  • How to include HTML tags in a success message?

    I have seen a few posts on this topic in the past, but have not seen a definitive response...apologies if this has been answered.
    I would like to have a dynamic process success message that includes some HTML tags in it - in this case an anchor tag that can jump the user back to the object he/she just edited.
    So, I build up a dynamic success message in a page variable - say P10_SUCCESS_MSG - and set the Process Success Message field in the relevant Process to &P10_SUCCESS_MSG.
    The problem is that when the page template substitutes in my message for #SUCCESS_MESSAGE# it looks like it also escapes any HTML tags, so the markup gets displayed literally on the page.
    Is there any recommended way to override or get around this behavior?
    Many thanks,
    Bill

    I just noticed that it looks like the success message is passed around on the URL - when I look at my URL after a successful form process, I see &success_msg=BIG_UGLY_ESCAPED_SUCCESS_MSG_HERE embedded in the URL. If this is the case, I can see why - technically - it ends up getting escaped. Looks like I may have to figure out my own hack for success message processing - maybe some weird post-processing of a placeholder success token that I replace in a page 0 process or something...

Maybe you are looking for