I found a way to do this.
I know that it has been a long time since it was asked, but I thought that someone could benefit from my search.
I assume there is a complete hack, but it works.
Look at this:
<div id="something1" <c:if test="true">class="hide"</c:if>> something2 </div>
When < and > The tag is not validated.
The browser source code shows:
<div id="something1" class="hide"> something2 </div>
Got an idea here .
Hope someone finds this helpful.
source share