I'm working on a web project in
struts 2. I have many actions, and each action has getters and setters to send/bring form values from request. Since many of my forms are similar, more often than not, I end up using same getters and setters but in several places.
I want to know how I can
minimize redundant code in my application. Can the actions use something like an
EJB that every action can share? or how else can I tackle this? Please help me!!! and if you know the answer please share an example
Thanks in advance!!!