• 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

Getting current portal project path in RAD

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i want to put a properties file some where in my portlet project ,probably under WebContent and read it through java.io api's from portlet. Can any one suggest where exactly suggest where i could put the file and which path should i give in say a FileInputStream("path");

Thanks
Biju
[ August 04, 2006: Message edited by: Biju muzhikara ]
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say properties file, it appears you have some kind of configuration file. Could you elaborate on what kind of configuration file it is? If you want to read the file, you can put it at some location on the server and store the path to the file as portlet preference (not a very good solution though).

I faced this question when I wanted to read spring configuration file. If that's your problem, put the file somewhere in class path and use ClassPathResource class provided by the spring framework to use the file.

C
 
Ranch Hand
Posts: 686
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually I tried to run the portal demo which is there in the tutorial of RAD but I think somehow it is not able to create the database. As I have imported the database from example the project runs fine. But it neither able to show any data from cloudscape database nor able to store data in database.

Is there any specific setup required to run cloudscape database or something wrong with the example database.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

I have this problem. I am trying to read jndi name for an oracle connection.
I have put a config.properties under WEB-INF and I don't know how to read it.
Is there a better way to save a jndi name?

Thank you.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic