Print  
Gray star Gray star Gray star Gray star Gray star --Not rated--
208 Visits 2 Comments
Created
Gary S Ribar Gary S Ribar
Kablink Component
  • Teaming

In order to get access to external databases, I need to set up the driver, url, etc.  I clearly don't want to hard code this information and thought that the base place to put it would be in the web.xml files as context parameters.  My question is then how do I get to these parameters inside a method that is being called from a subclass of a controller?

Workflow
Process State Action
Discussion workflow Active
This entry is currently active
Attachments(0)
Entry History
Tags
 
Replies
Thumbnail Image
Jong Kim Jong Kim

The best place to put thes "your own" properties in is ssf-ext.properties file. Then, you can use org.kablink.teaming.util.SPropsUtil class to retrieve the property values from inside your own class.

Thumbnail Image
Gary S Ribar Gary S Ribar

I'll rework it that way.

Thanks

Skip Footer Toolbar