Bug 7222 - TLV incorrectly flagging <c:set> action with no body content
Summary: TLV incorrectly flagging <c:set> action with no body content
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-18 22:49 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

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