Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Relative Path to XML

782573Dec 3 2010 — edited Dec 5 2010
I am using WC 11g, w/ Jdeveloper 11.1.1.3.0

I have installed a small bit of javascript that is going to retreive some XML and display it. I need to pull the XML from the same server as the webcenter application is deployed using a "get:XML" command in the javascript.

My question is in making sure I define the relative path correctly. Let's say I deploy my application on the server named "wc1.mysite.com:8887/app/faces/index.jspx.

and I put the xml on that server, in relation to the root, in a folder as follows: oracle/data/index.xml

I believe my relative path needs to be getXML("oracle/data/index.xml"); but that is not showing the data.

Am I missing something? When the application is deployed, is it deploying from the /faces directory and thus, do I need to escape teh /faces directory as follows:

getXML("../oracle/data/index.xml");

Any insight would be great. Thanks!

Pat
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2011
Added on Dec 3 2010
10 comments
393 views