SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    set "<div class='urg5'>High</div>" in JTSL

    I want to set the value to
    <td><div class='urg5'>High</div></td>
    in JTSL


    Code:
    I tried
    <c:set var="ack" value="<div class='urg5'>High</div>"/>
    <c:out value="${ack}"/>
    
    Page source of the JSP web page is
    &lt;div class='urg5'&gt;High&lt;/div&gt;</td>
    
    i.e. special characters appear.
    
    instead of
    <div class='urg5'>High</div>

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The code should be
    Code:
    <c:out value="${ack}" escapeXml="false"/>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •