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. |
Administrator
|
John,
Have a look at the flickr-search example, under xforms-jsp/flickr-search. There you will find service-search.jsp which is a service that takes XML in and returns XML. Alex On Thu, Feb 4, 2010 at 10:19 PM, JohnBampton <[hidden email]> wrote: > > 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. > -- > View this message in context: http://n4.nabble.com/xforms-jsp-and-firebird-database-tp1469810p1469810.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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I have the conneciton to firebird working now.
But I am having trouble with jsp xml stuff. How do I get the value of ticketno using the dom? <xforms:instance id="data-instance"> > <data> > <ticketno/> > </data> > </xforms:instance> |
John,
Did you check the JSP example Alex mentioned in this thread? There is also some doc here: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications#TOC-Implementing-XForms-services-with-J -Erik On Fri, Feb 5, 2010 at 12:02 AM, JohnBampton <[hidden email]> wrote: > > I have the conneciton to firebird working now. > > But I am having trouble with jsp xml stuff. > > How do I get the value of ticketno using the dom? > > <xforms:instance id="data-instance"> >> <data> >> <ticketno/> >> </data> >> </xforms:instance> > -- > View this message in context: http://n4.nabble.com/xforms-jsp-and-firebird-database-tp1469810p1469907.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 |
Free forum by Nabble | Edit this page |