How do I use jsp:useBean with collections like Lists and Maps correctly?
I can get Lists by using
type="List<MyObject>"
but I cannot get the List to instantiate if nothing is passed.
class="ArrayList<MyObject>"
And the above attribute gives an error:
The value for the useBean class attribute ArrayList`<MyObject`> is invalid.
And both the attributes fail for a HashMap.
Currently, I'm reading the objects using getAttribute() but it'll be cleaner to use the tags and set them up.