I have a jsp to create Department objects and I need to put them inside a Collection, those Department objects need to be created dynamically in the jsp, I have been able to create one Department object, but I am clueless on how to create more of these objects and how to put them in a collection. Here is the code:
And the action this page goes is:
The List deptos always has a null entry, what I want is to be able to create as many Depto objects as the users needs and store them in the List Deptos. Is it possible to do so?