File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes Getting current portal project path in RAD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Getting current portal project path in RAD" Watch "Getting current portal project path in RAD" New topic

Getting current portal project path in RAD

Biju moozhikkara

Joined: Oct 21, 2005
Posts: 20
i want to put a properties file some where in my portlet project ,probably under WebContent and read it through 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");

[ August 04, 2006: Message edited by: Biju muzhikara ]
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
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 - Coming soon!
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

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

Joined: Mar 05, 2009
Posts: 7

I have this problem. I am trying to read jndi name for an oracle connection.
I have put a 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:
subject: Getting current portal project path in RAD
It's not a secret anymore!