xforms jsp and firebird database.
Posted by
JohnBampton on
URL: https://discuss.orbeon.com/xforms-jsp-and-firebird-database-tp1469810.html
Hello all,
I have a basic one field xform like below. I want to submit this to a jsp page that insert this field into a firebird database. Does anyone have and example jsp that I can follow? I am really stuck on this.
<xhtml:html xmlns:xforms="
http://www.w3.org/2002/xforms" xmlns:xhtml="
http://www.w3.org/1999/xhtml" xmlns:ev="
http://www.w3.org/2001/xml-events"> <xhtml:head>
<xforms:model>
<xforms:instance id="data-instance">
<data>
<ticketno/>
</data>
</xforms:instance>
<xforms:submission id="save-submission" ref="instance('data-instance')"
action="/xforms-jsp/temp/sub.jsp" method="post" replace="instance">
<xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while
submitting the form! </xforms:message>
</xforms:submission>
</xforms:model>
</xhtml:head>
<xhtml:body>
<xhtml:div class="paragraph">
Ticket No: <xforms:input id="tickettop" ref="ticketno"
incremental="true" class="input"/>
</xhtml:div>
<xhtml:div>
<xforms:submit submission="save-submission" appearance="full">
<xforms:label>Submit Request</xforms:label>
</xforms:submit>
</xhtml:div>
</xhtml:body>
</xhtml:html>
Regards, John.