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");
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.
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.