This works fine: <c:out value="'raz'"/> The generated page fragment is something like this: 'raz' So it is OK. However when I use c:out inside another HTML tag like this: <input type='button' value='<c:out value="'raz'"/>'> The generated html page is invalid: <input type='button' value=''raz';raz''> This was tested under Tomcat 4.0.6. This all works fine under JBOSS 3.0.4 so it looks like a Tomcat bug to me.
This works fine under tomcat 4.1.24 as well as tomcat 5.0.