Hi All,
I have couple of doubts in struts-2.
First one: MVC here, Controller is black-box which hands over to struts.xml, View is
jsp and Model is Data and which retrieves the data from DB. i.e Model and Business services.
Model which contains set of variables with setters and getters. For this Model class some people call as Beans. Which is the proper name for this, Model or Bean? If Bean the why we implements
ModelDriven interface why not
BeanDriven?
Second : Suppose if I have 100 methods in my single action class instead of creating 100 actions. Also I have 100 Model (Beans) which contains same member variables and having different class names i.e Customer1 to Customer100. for example,
Now I want to implement ModelDriven<?> in my single action class. Obviously I want all 100 Models (bean) in my single action class which contains all 100 methods with different logic. Now how to implement ModelDriven<?>. I cant set all 100 Models here . I mean which Model I have set in generics place?
Thanks:
Ramakrishna K.C