Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

config file setting in JSP

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have to set the config file and it read it through some method in jsp. iam using tomcat4.1 n eclipse 2.1 version.
%WWF_JAVA_HOME%\bin\java.exe -Dconfigs=ap/config/config.xml;util/config/config.xml;tia/config/config.xml;user/config/config.xml;user/config/context.xml -Dwwf.user.noAgents -Dwwf.user.login=%WWF_USER_LOGIN% -Djava.library.path=%WWF_BLACKWOOD_LIB% -Dmozilla.home=%WWF_MOZILLA_HOME% -Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactoryImpl -cp %JARS%;%LIB% %CLASS%
I used in Java so i need to implement same in JSP so that i can use the same old methods otherwise iam not able to read the config files.
cud u please tell me where to place the config files of a project.
thank you
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the best place to put config file in web application is under WEB-INF directory. In your jsp or servlet, you can load the config file such as String file=getRealPath()+"/WEB-INF/xxxxyourfilename" ;
Bill
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic