Submitting xml data/ where is it stored

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

Submitting xml data/ where is it stored

alan.b
I am new to Orbeon, and running web servers in general, and have not been able to find a solid example of how to submit form data.  To begin, I am running Orbeon on Tomcat on my local machine, so that I can test it out.  I have an test form created in xhtml with xforms elements.  I would like to save the form data in xml format.  Right now I have the following set:
                <xforms:submission id="save"
                        action="tournament1.xml"
                        method="put"
                        indent="true"
                        omit-xml-declaration="true"
                        includenamespaceprefixes="#default">
  </xforms:submission>

I have tried this, as well as several other forms of it, but can't seem to figure out either, how to actually get it to submit, or where it stores it at.  I was under the impression that it would save it to the same directory that the tournament.xhtml file is, but it does not seem to be there.  I am sorry if this has already been covered in other posts, or if it should be posted in a general xml/xhtml forum, but I though I would start here since I am running this form on Orbeon.

Thanks for any help.

Reply | Threaded
Open this post in threaded view
|

Re: Submitting xml data/ where is it stored

Alessandro Vernet
Administrator
Alan,

alan.b wrote
I am new to Orbeon, and running web servers in general, and have not been able to find a solid example of how to submit form data.  To begin, I am running Orbeon on Tomcat on my local machine, so that I can test it out.  I have an test form created in xhtml with xforms elements.  I would like to save the form data in xml format.  Right now I have the following set:
                <xforms:submission id="save"
                        action="tournament1.xml"
                        method="put"
                        indent="true"
                        omit-xml-declaration="true"
                        includenamespaceprefixes="#default">
  </xforms:submission>
A submission won't save files to disk, on the file system, along other files. In theory it could, but since files will be saved on the server, this use case doesn't make much sense and has never been implemented :). The easiest way to save a file is to save it in the eXist database, with action="/exist/rest/db/myfile.xml". Then go to http://localhost:8080/orbeon/exist/rest/db/myfile.xml and you should be able to see your file there. You can also access eXist through WebDAV by mounting http://localhost:8080/orbeon/exist/webdav/.

Alex