I am working on struts2 application. I have getter/setter in my action class. Now, I am sending object of my action class (say Action.java) to DAO class (say Dao.java) as a parameter of some method. All is ruuning well, I am getting value of all getters in my Dao.java. Now, I want to do all this without creating and sending the object of Action.java to Dao.java. Simply asking, is it possible to get action class- getter methods value in Dao.java without passing the object of Action.java ?
Please suggest.