oxf protocol for finding a file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

oxf protocol for finding a file

Phani S
Hi,
    I installed my application as a separate deployment. When I try to include a file with xi:include like

<xi:include  href="/xforms-jsp/menu.xhtml" xxi:omit-xml-base="true" />

it is giving the error \xforms-jsp\menu.xhtml (The system cannot find the path specified)

When I include the file like href="http://172.31.130.131/project/xforms-jsp/tmenu.xhtml"

it is working fine. Is there any other way to include the file so that when the deployment changed to a different system there is no need to change the IP address.

--
Phani. S
M.Tech(Software Engineering)



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: oxf protocol for finding a file

Alessandro Vernet
Administrator
Phani,

Phani Sajja wrote
Hi,
    I installed my application as a separate deployment. When I try to
include a file with *xi:include* like

<xi:include  href="/xforms-jsp/menu.xhtml" xxi:omit-xml-base="true" />

it is giving the error \xforms-jsp\menu.xhtml (The system cannot find the
path specified)

When I include the file like href="
http://172.31.130.131/project/xforms-jsp/tmenu.xhtml"

it is working fine. Is there any other way to include the file so that when
the deployment changed to a different system there is no need to change the
IP address.
If you put the file in the orbeon/WEB-INF/resource/gaga.xml you should be able to XInclude it with:

<xi:include  href="oxf:/gaga.xml" xxi:omit-xml-base="true" />

But I can't think of a way to XInclude a file which would be in your application's war (remember: the code executing the XInclude is running in the context of the Orbeon's war).

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: oxf protocol for finding a file

Phani S
Thanks for the reply,
             Probably I have to use the full URL for referring the file.

If you put the file in the orbeon/WEB-INF/resource/gaga.xml you should be
able to XInclude it with:

<xi:include  href="oxf:/gaga.xml" xxi:omit-xml-base="true" />

But I can't think of a way to XInclude a file which would be in your
application's war (remember: the code executing the XInclude is running in
the context of the Orbeon's war).

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/oxf-protocol-for-finding-a-file-tp25176049p25182861.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
Phani. S
M.Tech(Software Engineering)
Motilal Nehru National Institute of Technology
(+91) 9010093398


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws