| Author |
.ini file in Web App Environment
|
SP Nam
Ranch Hand
Joined: Oct 15, 2003
Posts: 41
|
|
Hi I am using .ini file for some properties which are used in my jsp pages. Where to put the .ini file as it is config file specific to web application. Any suggestion please. SP Nam [ November 18, 2005: Message edited by: Bear Bibeault ]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
What types of properties are you talking about? ini files are not part of the standards. You might consider properties files or context parameter entries in web.xml.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
SP Nam
Ranch Hand
Joined: Oct 15, 2003
Posts: 41
|
|
I will go with properties files, how to got about it, where to put the property file. SP Nam
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
As with any other properties file, you can place it anywhere along the classpath and retrieve using the normal Java mechanisms. Alternatively, you can place it anywhere within the web app context and use the ServletContext.getResourceAsStream method.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
P.S. I slightly modified the title of this topic as it is not a Tomcat-specific issue.
|
 |
 |
|
|
subject: .ini file in Web App Environment
|
|
|