Bug 20143 - Invalid escaping of special characters in c:out tag enclosed in enother HTML tag
Summary: Invalid escaping of special characters in c:out tag enclosed in enother HTML tag
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.0.2
Hardware: PC All
: P3 normal with 3 votes (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-22 11:58 UTC by Jacek Lawniczek
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.