jsp help

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jsp help

JohnBampton
As soon as I add line number 3 below, my form errors out.  This is jsp code that the form is submitted to. and the xform is below -


SAXReader xmlReader = new SAXReader();
     
        Document doc = xmlReader.read(request.getInputStream());
               
        Element a = doc.getDocumentElement();




<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>