Posted By:
Paul_Spencer
Posted On:
Thursday, November 29, 2001 07:26 AM
I have a Container class that reads a configuration file (currently there are several configurations and possibly more to come) in order to dynamically get data from the database. We store the data in a HashSet within the Container and is accessed through getAttribute("name") and setAttribute("name",value) methods. I have just recently installed STRUTS and it is working great with my design. However, I would like to include the ActionForm functionality. I have 2 problems with my current implementation. 1) The Container can load up to 100 attributes which, in my opion, is too many get/set methods to maintain. 2) The Container is loaded dynamically which makes it imp
More>>
I have a Container class that reads a configuration file (currently there are several configurations and possibly more to come) in order to dynamically get data from the database. We store the data in a HashSet within the Container and is accessed through
getAttribute("name")
and
setAttribute("name",value)
methods.
I have just recently installed STRUTS and it is working great with my design. However, I would like to include the ActionForm functionality.
I have 2 problems with my current implementation.
1) The Container can load up to 100 attributes which, in my opion, is too many get/set methods to maintain.
2) The Container is loaded dynamically which makes it impossible to create get/set methods for all attributes beforehand.
Is there a way to overload the method which does the introspection within STRUTS to use my get/set Attribute methods instead?
And which method handles the introspection?
If not any suggestions on how to mimic this functionality and still be able to integrate with the ActionForm STRUTS functionality?
<<Less