Revision: 936
http://stripes.svn.sourceforge.net/stripes/?rev=936&view=rev
Author: javelotinfo
Date: 2008-06-16 15:25:11 -0700 (Mon, 16 Jun 2008)
Log Message:
-----------
Fix for STS-514
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
2008-05-29 21:04:01 UTC (rev 935)
+++
trunk/stripes/src/net/sourceforge/stripes/tag/UseActionBeanTagExtraInfo.java
2008-06-16 22:25:11 UTC (rev 936)
@@ -42,7 +42,7 @@
// We can only provide the type of 'var' if beanclass was used because
// if binding was used we need runtime information!
Object beanclass = tag.getAttribute("beanclass");
- if (beanclass != null) {
+ if (beanclass != null &&
!beanclass.equals(TagData.REQUEST_TIME_VALUE)) {
String var = tag.getAttributeString("var");
if (var == null) var = tag.getAttributeString("id");
@@ -50,11 +50,11 @@
if (beanclass instanceof Class) beanclass = ((Class<?>)
beanclass).getName();
// Return the variable info
- return new VariableInfo[] { new VariableInfo(var, (String)
beanclass, true, VariableInfo.AT_BEGIN) };
+ if (beanclass instanceof String) {
+ return new VariableInfo[] { new VariableInfo(var, (String)
beanclass, true, VariableInfo.AT_BEGIN) };
+ }
}
- else {
- return NO_INFO;
- }
+ return NO_INFO;
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
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