Bug 8414 - setDateParam type attribute
Summary: setDateParam type attribute
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.0
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2002-04-23 13:16 UTC by Lance Andersen
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Lance Andersen 2002-04-23 13:16:43 UTC
If you specify and invalid value for the setDateParam type attribute, the
query is still  executed.

This should result in a translation error.
<sql:dateParam value="${theDate}" type='invalidType'/>
Comment 1 Jan Luehe 2002-04-23 17:43:07 UTC
Fixed. Invalid 'type' attribute now causes JspException to be raised.
Comment 2 Jan Luehe 2002-04-23 17:50:19 UTC
Also note that since 'type' in <sql:dateParam> is dynamic, an invalid value for
it will not trigger any error at translation time. Instead, it will be detected
at runtime.