Hello, I am trying to integrate Orbeon with my current web application. This is a separate deployment configuration. The scenario where I need to process the response from browser in the my own context (testProject) instead of Orbeon processing it. To do that, I am using absolute URL in the submission element. E.g <xforms:submission id="save-submission" ref="instance('myinstance')" action="http://localhost:8080/testProject/jsp/processXML.jsp" method="get"/> I want to avoid using absolute URL as it results into multiple maintenance issues. Do I have any alternate way of doing this? -- 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 |
Administrator
|
You can have an XML file in the resources that contains the link to your server (http://localhost:8080) and then write <xforms:submission resource="{doc('oxf:/config.xml')/config/server}/jsp/processXML.jsp"/>. (Note that the action "attribute" has be deprecated in favor of "resource".) Alex |
Thanks Alex! It worked exactly how I wanted it.
For future references: I updated my submission to <xforms:submission id="save-submission" ref="instance('questionnaire-instance')" resource="{doc('oxf:/config.xml')/config/server}/testProject/jsp/processXML.jsp" method="post" replace="none" serialization="none" > I created a config.xml and kept it under orbeon context under resources <config> <server>http://localhost:8080</server> </config> Best Regards, Madhuri On Thu, Jul 2, 2009 at 5:25 PM, Alessandro Vernet <[hidden email]> wrote:
-- 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 |
Free forum by Nabble | Edit this page |