struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: s:select with list from attributes hash map gives list key error
Date Thu, 19 Apr 2007 13:12:47 GMT
--- Darryl Culverwell <darryl@bridge-pt.com> wrote:
> attributes['user.status.options'] produces a list of

> beans that I'm after.
> 
> Im doing something like this in my action :
> 
> List userStatusOptions = getUserStatusOptions();
> attributes.put("user.status.options",
> userStatusOptions);

Oh, I thought you said:

> I have a list of UserStatus beans in my attributes 
> map with key=user.status

Just out of curiosity, why don't you just expose the
list in the action instead of putting it in a map?

Um... I guess I'm not sure what happens if you provide
a list of non-primitive types to an <s:select.../>
without specifying key/value info; hopefully someone
else will chime in.

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message