Reputation: 2018
I have the following context-param
element in a Tomcat Webapp web.xml
file:
<context-param>
<param-name>S_ALL_RIGHT_RESERVED</param-name>
<param-value>Tous droits réservés</param-value>
</context-param>
I have the following code in a JSP:
<div>
Without cout: ${initParam['S_ALL_RIGHT_RESERVED']}
<br />
With cout: <c:out value="${initParam['S_ALL_RIGHT_RESERVED']}"></c:out>
</div>
If I look at the source of the page, below is what I get:
<div>
Without cout: Tous droits réservés
<br />
With cout: Tous droits réservés
</div>
What I would like to get instead is:
<div>
Without cout: Tous droits réservés
<br />
With cout: Tous droits réservés
</div>
Can you tell what's wrong? Thank you.
Upvotes: 0
Views: 194
Reputation: 4154
In your web.xml, try this:
<param-value><![CDATA[Tous droits réservés]]></param-value>
Upvotes: 1