Bug 7223 - A fatal error occurs (HTTP 500) if the 'value' attribute of <c:set> is set to null.
Summary: A fatal error occurs (HTTP 500) if the 'value' attribute of <c:set> is set to...
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
: 7257 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-18 22:55 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



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:55:37 UTC
Given:

<c:set var="someVar" value="${null}"/>


Result:

javax.servlet.ServletException: The "value" attribute illegally evaluated to
"null" or "" in <set>

JSTL Public Draft, Section 4.3, 'Null and Error Handling':
"If 'value' is null, the scoped variable defined by var and scope is removed."
Comment 1 Shawn Bayern 2002-03-18 23:01:42 UTC
Anothed spec change that slipped through.  All fixed.  Thanks again.
Comment 2 Shawn Bayern 2002-03-20 03:35:30 UTC
*** Bug 7257 has been marked as a duplicate of this bug. ***