How can i save the form into an xml file in xforms-jsp

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

How can i save the form into an xml file in xforms-jsp

Kiran Kumar
Hello,

I did integrated struts2 and orbeon forms, i am able to view index.jsp( which is in xforms-jsp/sample-app/ ) using RequestDispatcher in my action class.

Now i want to save that form into an xml file in my local drive , So how can i do save.


Please let me know what i have to do.



Thanks,
E Kiran Kumar.

Reply | Threaded
Open this post in threaded view
|

Re: How can i save the form into an xml file in xforms-jsp

Alessandro  Vernet
Administrator
Hi Kiran,

Is this for a form that you created with Form Builder, or are you writing XForms by hand?

- If the former, I'd recommend you implement the Form Runner persistence API [1], using whatever technology you're comfortable with. Also, instead of using the RequestDispatcher, I'd recommend you use Form Runner Java Embedding API [2].
- If the latter, you can write your own <xf:submission> that sends the data to a service you implement, again using whatever technology you're comfortable with, and that saves the data to disk.

Does this help?

[1] https://doc.orbeon.com/form-runner/api/persistence/
[2] https://doc.orbeon.com/form-runner/link-embed/java-api.html

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet