variable evaluation in tag attribute with UseActionBeanTagExtraInfo
-------------------------------------------------------------------
Key: STS-601
URL: http://www.stripesframework.org/jira/browse/STS-601
Project: Stripes
Issue Type: Bug
Components: Tag Library
Affects Versions: Release 1.5
Reporter: Chaf
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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development