Bug 7308 - <fmt:parseXXX> throws exception for null values
Summary: <fmt:parseXXX> throws exception for null values
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-21 04:28 UTC by Hans Bergsten
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 Hans Bergsten 2002-03-21 04:28:09 UTC
The spec says "If value is null or empty, the scoped variable defined by var
and scope is removed" but a null value results in an exception instead:

javax.servlet.jsp.JspTagException: Unparseable number: ""
	at
org.apache.taglibs.standard.tag.common.fmt.ParseNumberSupport.doEndTag(ParseNumberSupport.java:173)

for parseNumber and a similar exception for parseDate.