Hi! In my webapplication a user can list items in a db. The Items can be fetched in many numerous ways. By brand, by category, subcategory, department etc. The view looks exactly the same but the top is slightly different.
When the items is viewed a user can filter the items to be more specific. The problem is I don't know exactly on how to design the Action class. Should I use one action class that has get,set for brand, department etc and check if the parameter is empty or what is the normal approach?
Sould I have a diffrent Action class when Brand, Department, Subcategory ( in a droplist in the view ).
A flexible action that can sort and filter as loosely as you describe would be pretty difficult to maintain. I would look to see if you could retrofit your problem into using displaytag and you'll be happy you did.
Discussion of Java, Struts, Spring, Hibernate, etc. <a href="http://www.wantii.com" target="_blank" rel="nofollow">www.wantii.com</a>