Bug 7222

Summary: TLV incorrectly flagging <c:set> action with no body content
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED FIXED    
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Ryan Lubke 2002-03-18 22:49:07 UTC
Given:

<c:set var="varName">
</c:set>

Result:

<h3>Validation error messages from tag library c</h3>
<p>null: A body is necessary inside the "c:set" tag, given its attributes.</p>
<p>null: A body is necessary inside the "c:set" tag, given its attributes.</p>
<p>null: A body is necessary inside the "c:set" tag, given its attributes.</p>


According to the public draft: 

2.5 Body Content, paragraph 1:

   "If an action accepts a body content, an empty body is always valid
    unless explicitly stated otherwise.

    If the body content is used to set the value of an attribute, then
    an emtpy body content sets the attribute value to an empty string."

Also, is the duplicate TLV messages intentional?
Comment 1 Shawn Bayern 2002-03-18 22:52:53 UTC
Thanks - the rules changed, but the TLV didn't.  Fixed the TLV.