title: How to assign html value to variable using jstl c:set?
body: <p>Hopefully the intention isn't overly skewed... </p>
  
  <p>I'm trying to set a variable with some html value using jstl, and afterwards display it in a bootstrap tooltip. The html is static and quite short, so I don't want to bother about sending the value to jsp as an attribute from any Servlet. So basically it looks as follows;</p>
  
  <pre><code>&lt;c:set var="passMsg" value="myHtmlString"/&gt;
  &lt;div class="form-group"&gt;
      &lt;input data-rel="tooltip" data-toggle="tooltip" title="${passMsg}" data-placement="top" class="form-control" name="password" type="password"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried this (<em>haha! not so intuitive, but hey! it was a cheap shot</em>);</p>
  
  <pre><code>&lt;c:set var="passMsg" value="&lt;p&gt;Passwords must contain &lt;br&gt;at least One Uppercase character &lt;br&gt;&amp; One digit.&lt;/p&gt;"/&gt;
  </code></pre>
  
  <p>...and tried body content for the <code>&lt;c:set/&gt;</code> tag;</p>
  
  <pre><code>&lt;c:set var="passMsg"&gt;
      &lt;p&gt;Passwords must contain &lt;br&gt;at least One Uppercase character &lt;br&gt;&amp; One digit.&lt;/p&gt;
  &lt;/c:set&gt;
  </code></pre>
  
  <p>...and to leverage upon XML-escaping capability of the <code>&lt;c:out/&gt;</code> tag, I also tried this;</p>
  
  <pre><code>&lt;c:set var="passMsg"&gt;
      &lt;c:out value="&lt;p&gt;Passwords must contain &lt;br&gt;at least One Uppercase character &lt;br&gt;&amp; One digit.&lt;/p&gt;"/&gt;
  &lt;/c:set&gt;
  </code></pre>
  
  <p>Unfortunately, my tooltip keeps showing the string with tags included as this;</p>
  
  <blockquote>
    <p>&lt;p&gt;Passwords must contain &lt;br&gt;at least One Uppercase character &lt;br&gt;&amp; One digit.&lt;/p&gt;</p>
  </blockquote>
  
  <p>whereas what I want is for it to look like this;</p>
  
  <blockquote>
    <p>Passwords must contain <br>at least One Uppercase character <br>& One digit.</p>
  </blockquote>