I was previously using servletContext for storing resources, but I've switched to  
JNDI.  I populate the tree using an initialization servlet and then each functional 
servlet gets the resources it needs.  The thing I like is that JNDI isn't  a servlet 
only concept so some of my helper classes can be used in both a servlet container or 
in a "regular" VM and they always look for their resources from JNDI.

Just pass the initialContext in as a parm to the action method or access the 
initialContext in any class that needs it.

I haven't seen any issues yet. But I've just started using this approach.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to