You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by abhishek jain <ab...@gmail.com> on 2010/07/14 09:08:14 UTC

Datasource object in any class

Hi friends,
I have an application in which there is a Cart object which i need to save
in session, as it is to be saved in session, i cannt store a reference of
datasource in the Cart. (as i believe it is not serializable).

I need to know is there a way by which the datasource is available globally
and i dont need to pass that explicitly in every method i use it.
I am using struts 1.x and tomcat.
Pl advice.
-- 
Thanks and kind Regards,
Abhishek jain