• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting current portal project path in RAD

 
Biju moozhikkara
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
manuela marginean
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic