Login  Register

Relative URLs in Separate Deployment

Posted by Phani S on Oct 31, 2009; 6:10am
URL: https://discuss.orbeon.com/Relative-URLs-in-Separate-Deployment-tp340530.html

Hi all,
       I deployed my application using seperate deployment. My applications orbeon context is /orbeon and my applications context is /sample and it contains the xforms-jsp directory for the XForms pages. When I use absolute URLs such as http://localhost/sample/xforms-jsp/page.xhtml in xforms-submission with method="post" it is giving the page correctly but with the URL displayed is "http://localhost/sample/orbeon/xforms-server-submit". If I use relative URLs such as action="page.xhtml" or action="/page.xhtml" the URL found in browser is same but this time getting the page "Orbeon Forms Error" page saying "Null Pointer Exception".

       For the case of xforms:load like given below

<xforms:trigger>
    <xforms:label>Replace</xforms:label>
    <xforms:load resource="http://localhost/sample/xforms-jsp/page.xhtml"
            show="replace" ev:event="DOMActivate"/>
</xforms:trigger>

It is giving the page correctly and also giving the browser url also as I expect.

In case of relative URLs if I use resource="/page.xhtml" It is saying that the page not available and the browser URL is "http://localhost/orbeon/page.xhtml". In case of resource="page.xhtml" after a long waiting it is saying "No route to host: connect" and the browser URL "http://localhost/orbeon/xforms-jsp/page.xhtml".

After many experiments I am posting this thread. Is it possible to use relative urls. Browser should display the proper URLs. And also I always want to use method="post". What things I have to do so that I can use post and the browser URLs looks what I expect.

Thanks in advance...
--
Phani. S
M.Tech(Software Engineering)
Motilal Nehru National Institute of Technology
(+91) 9453799211


--
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