In a web application which has lots of option lists, it would be difficulat to put all of those options in separate tables and build data layer etc for every of them. (I used to do this in conventional non-oop languages like PHP, ASP etc. but doing it with Java seems to me difficult).
What do people do (best practice)? (As an example in a web application with 50 forms and 10 options list).
PhD Artificial Intelligence, OCJP1.6
Joined: Aug 21, 2004
Seemd no one has answered the question. I have prepared something and I would appereciate if you tell me your opinion.
I have written a class which has the options inside it (in future these options can come from db).
I have also added some methods which can help me build html forms. Is this good or I should not do this?