[ 
http://www.stripesframework.org/jira/browse/STS-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-601.
--------------------------


> 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
>            Assignee: Frederic Daoud
>             Fix For: Release 1.5.2, Release 1.6
>
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to