[ 
http://www.stripesframework.org/jira/browse/STS-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11783#action_11783
 ] 

Frederic Daoud commented on STS-601:
------------------------------------

This is related to STS-514 (but is a different bug).


> 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
>
> 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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to