You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by teknokrat <te...@yahoo.com> on 2003/07/03 18:42:41 UTC

on using beans in different scopes

I have a number of beans set in the application scope that I want to use 
  in various select boxes. The docs say to use
<html:options collection="bean"> where bean is the bean "in some scope".

However when I try this I get an exception "no bean specified" 
eventhough I can show that the required bean is available in the 
application scope.

what am i missing here? there is no scope field in the html:options tag 
to let it know where to look for the bean...

thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: on using beans in different scopes

Posted by teknokrat <te...@yahoo.com>.
teknokrat wrote:

> I have a number of beans set in the application scope that I want to use 
>  in various select boxes. The docs say to use
> <html:options collection="bean"> where bean is the bean "in some scope".
> 
> However when I try this I get an exception "no bean specified" 
> eventhough I can show that the required bean is available in the 
> application scope.
> 
> what am i missing here? there is no scope field in the html:options tag 
> to let it know where to look for the bean...
> 
> thanks

Ok I get it - you can't use arrays in collections. doh!



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org