Orebon separate deployment help

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

Orebon separate deployment help

NewUser

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
Reply | Threaded
Open this post in threaded view
|

Re: Orebon separate deployment help

Alessandro Vernet
Administrator
NewtoXforms wrote
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 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Orebon separate deployment help

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


NewtoXforms wrote:
>
> 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 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

-----
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/Orebon-separate-deployment-help-tp24223659p24314242.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




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