I think my question will not be possible but i am standing in that scenario.
Container is tomcat 6. Is there any way to get the session object without the help of request in the servlet or any model class from tomcat? Reason is, there is a class which was used in more then 500 other class(utility class). currently i need the session object in that class but i cant able to change all the 500 class to pass request argument. Is there any way to achieve it?
Container is tomcat 6. Is there any way to get the session object without the help of request in the servlet or any model class from tomcat? Reason is, there is a class which was used in more then 500 other class(utility class). currently i need the session object in that class but i cant able to change all the 500 class to pass request argument. Is there any way to achieve it?