[
http://www.stripesframework.org/jira/browse/STS-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11431#action_11431
]
Frederic Daoud commented on STS-514:
------------------------------------
I got bitten by this bug today and it hurt :(
In a nutshell, using <s:useActionBean beanclass="${something}"/> results in a
very hard-to-track down JSP error. It's all UseActionBeanTagExtraInfo's fault.
I tested removing UseActionBeanTagExtraInfo and that solves the problem. What
is that class good for anyway, and are its benefits worth the cost of not being
able to use something dynamic in the beanclass attribute of useActionBean?
> Problems with 'beanclass' attribute of UseActionBean tag
> --------------------------------------------------------
>
> Key: STS-514
> URL: http://www.stripesframework.org/jira/browse/STS-514
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5
> Environment: XP, Tomcat 5.5
> Reporter: Phil Sladen
>
> a) Assignment to 'var' appears to be missing in
> UseActionBeanTagExtraInfo.getVariableInfo().
> b) When tag called as:
> <s:useActionBean beanclass="a.b.c.${beanclass}" var="actionBean"/>
> get:
> java.lang.ClassCastException: java.lang.Object cannot be cast to
> java.lang.String
> at
> net.sourceforge.stripes.tag.UseActionBeanTagExtraInfo.getVariableInfo(UseActionBeanTagExtraInfo.java:53)
> at
> org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:715)
> at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442)
> at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
> Thanks.
--
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development