Hi! When running multiple Struts applications, if the same object/functionality can be identified across all of the apps, how do you decouple that from one of the frameworks to share among all of the apps?
If all the web apps resides on same JVM inside a common server, then we can configure server to load a particular resource/object for all the web apps it host.
If you need to share resources between web application you must let the web container manage them, and put them in JNDI. The web application can then get the resources from a JNDI context very easily.
For Tomcat, This link shows how JNDI can be configured and this link explains the How context loaded by all the web apps.