struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
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 <> 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.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message