Bug 20143

Summary: Invalid escaping of special characters in c:out tag enclosed in enother HTML tag
Product: Taglibs Reporter: Jacek Lawniczek <lawniczek>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 1.0.2   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Jacek Lawniczek 2003-05-22 11:58:24 UTC
This works fine:
  <c:out value="'raz'"/>
The generated page fragment is something like this:
  &#039;raz&#039;
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&#039;'>

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.
Comment 1 Pierre Delisle 2003-05-28 00:53:46 UTC
This works fine under tomcat 4.1.24 as well as tomcat 5.0.