• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic