Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Release 1.5
-
Fix Version/s: Release 1.5.2, Release 1.6
-
Component/s: Tag Library
-
Labels:None
Description
Consider the following snippet from a given jsp file:
<c:set var="binding">MyAction.action</c:set>
...
<stripes:useActionBean binding="/stuff/${binding}" var="actionBean" />
I am simply binding an action bean to /stuff/MyAction.action
During jsp compilation, the stripes:useActionBean tag is validated through UseActionBeanTagExtraInfo
Unfortunately, this results in a ClassCastException because of the following statement in the validation in class UseActionBeanTagExtraInfo:
String var = tag.getAttributeString("var");
Indeed, debug shows, for some reason that I haven't investigated, that the value of the "binding" attribute is an object, and I cannot get any more information about it. Looks like the ${binding} variable hasn't been properly evaluated yet. And it cannot be cast to a String.
Note that:
1. the problem is solved by not using a variable: <stripes:useActionBean binding="/stuff/MyAction.action" var="actionBean" />
2. I had no problem with stripes 1.4.3 (which did not feature the UseActionBeanTagExtraInfo)
Regards,
chafrilo
This is related to
STS-514(but is a different bug).STS-514(but is a different bug).