From: titash n. <tit...@gm...> - 2008-02-28 14:07:39
|
Hi, I have been trying to embed eXist in my web app(its a struts application). I am creating a database and inserting data into it through the api. Also, my program retrieves the data and displays it. But I am not successful and I think I know the reason but not the solution. I am not able to replace this command(which is used when running a java app from main()): java -Dexist.initdb=true -Dexist.home=. TestDB How would I mention the "-Dexist.home=. " in my web app? That is why when I run the web app in the browser, the data folder remains empty, and the result shows "no esults found", which means that the creation and retrieving of eXist data is not working at all:( However, everything works fine(and I can see the content of the xml db) when I compile the code with main() and run through the command prompt using java -Dexist.initdb=true -Dexist.home=. TestDB Some help in this regard would be really appreciated. Thanks & Regards, Titash |