Well, I got it working...thanks for the sanity check, Laurie! The
user.groups collection was not getting assigned appropriately at the bottom
of a long, dark path of assignment logic. I suppose a null collection really
isn't technically a collection, hence the exception error message, but the
messa
Have you double-checked that getUser().getGroups() is returning what it
should be? I.e. getUser() is not returning null; getUser().getGroups()
is really returning a collection? As a sanity check, what happens if you
include the following in your JSP:
user:
user.groups:
> Are you just missing the getter for user? Struts2 has to call
> getUser().getGroups().
The action has getters and setters for both user and groups, and the user
object has a getter/setter for its groups attribute.
> I never have these two attributes pointing to the same property. It may
> w
ryangr wrote:
With that being said...I can populate the list "groups" just fine, but when
I try to use "user.groups" to get the other list it throws an exception that
says: "The requested list key 'user.groups' could not be resolved as a
collection/array/map/enumeration/iterator type." What am I
4 matches
Mail list logo