Bug 16069 - <c:out> does not handle defaults properly
Summary: <c:out> does not handle defaults properly
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: PC All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
: 12989 (view as bug list)
Depends on:
Reported: 2003-01-14 16:51 UTC by Dave Cherkassky
Modified: 2005-03-20 17:06 UTC (History)
1 user (show)

Illustrates the default behavior of the <c:out> tag (616 bytes, text/plain)
2003-01-14 16:52 UTC, Dave Cherkassky

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cherkassky 2003-01-14 16:51:17 UTC
According to spec, the body of the <c:out> tag specifies the default, in case 
the value attribute is empty.  The current implementation however, has a 

Once a default value is output once, it is also displayed for all subsequent 
uses of the <c:out> tag.

I am using Tomcat 4.1.12 and Standard tag library 1.0.2 in a Win2K environment.

I am attaching a file that reproduces the problem on my system.

 Dave Cherkassky
  V.P. of Software Development
  Djinn Software Inc.
  YIM: dcherk71
Comment 1 Dave Cherkassky 2003-01-14 16:52:34 UTC
Created attachment 4418 [details]
Illustrates the default behavior of the <c:out> tag
Comment 2 Shawn Bayern 2003-01-14 20:36:32 UTC
Good catch!  I violated my own guidelines concerning tag-handler reuse.  :-)

It should be fixed now in the CVS head; please let me know if you continue to 
experience any problems.
Comment 3 Pierre Delisle 2003-02-06 18:36:57 UTC
*** Bug 12989 has been marked as a duplicate of this bug. ***