I have many number of flows in my web application. All the flows uses one generic method for getting data from the db. In this generic method, i want to check one condition from the session data. How can i do this? If i pass request object from action class till that 'generic method' it becomes too tedious. Do we have any other alternative solution for this problem?
I am not very clear what you want to achieve, as far as my understanding I can say. Your generic method might be taking the arguments pass the your values as the parameter to the generic method instead passing the big request object. or you can put all the values in ArrayList object and then pass the object.