Hi,
I would need to be able to redirect from send () to a parameter send by my
servlet app.
The scenario would be:
The user opens the form that is integrated in a JSP, fills it and make a
save-final ()
Orbeon sends the XML to my app, and it returns a redirect or a parameter
(with a variable url depending on the content of the XML).
Orbeon in the process.save-final does a navigate (parameter).
An example of what I have tried:
In the response i send to orbeon have a redirect (Location):
*--- logs from orbeon.log ---*
2020-05-15 13:48:35,698 DEBUG XFormsServer -
response headers {Location:
"
http://localhost:8080/formularis/GuardatCorrecte.html", Keep-Alive:
"timeout=20", Connection: "keep-alive", Content-Length: "0", Date: "Fri, 15
May 2020 11:48:35 GMT"}
I tried to put then in process at propierties-local.xml. This is an example
to explain, I know that the get-response-header does not exist.
*--- my config of properties-local.xml ---*
<property as="xs:string" name="oxf.fr.detail.buttons.Proves.enviaXml">
save-final
</property>
<property as="xs:string"
name="oxf.fr.detail.process.save-final.Proves.enviaXml">
require-valid
then save
then send(
uri = "
http://localhost:8080/formularis/ServletEnviaXml",
method = "POST",
content = "xml"
)
then navigate("{xxf:get-response-header('Location')}")
recover navigate("
http://localhost:8080/formularis/error.html")
</property>
Greetings and thank
--
Sent from:
http://discuss.orbeon.com/