Re: [Xsltforms-support] Calling jsp from xquery on XSLTFORMS for online submission
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2011-03-23 12:38:18
|
Hello, Why do you explicitly say "http://localhost:8080"? Is is because it's not the same domain+port? Cross-domain limitation may apply! If so, you should do some URL rewriting at server-side. Thanks! -Alain Le 23/03/2011 13:09, srividhya a écrit : > > hi > Am trying to submit my form data to postgres database through jsp > on XSLTFORMS in exist database.. > for that am calling my jsp code in action of submission element, like this > > <xf:submission id="savetodb" method="post" > resource="http://localhost:8080/online-picme/handler.jsp" ref="..."> > </xf:submission> > > but it is not working under XSLTFORMS for me... > anyone have solution for that...? > > > > ----- Original Message ----- > From: xsl...@li... > Date: Tuesday, March 22, 2011 7:13 pm > Subject: Xsltforms-support Digest, Vol 22, Issue 8 > To: xsl...@li... > > > Send Xsltforms-support mailing list submissions to > > xsl...@li... > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > or, via email, send a message with subject or body 'help' to > > xsl...@li... > > > > You can reach the person managing the list at > > xsl...@li... > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Xsltforms-support digest..." > > > > > > Today's Topics: > > > > 1. Re: Calling jsp from xquery on XSLTFORMS for online > > submission (Efraim Feinstein) > > 2. Off-line XForms (COUTHURES Alain) > > 3. Re: Off-line XForms (nde...@ak...) > > 4. Re: Off-line XForms (Joe Wicentowski) > > > > > > ----------------------------------------------------------------- > > ----- > > > > Message: 1 > > Date: Mon, 21 Mar 2011 09:22:17 -0400 > > From: Efraim Feinstein <efr...@gm...> > > Subject: Re: [Xsltforms-support] Calling jsp from xquery on XSLTFORMS > > for online submission > > To: xsl...@li... > > Message-ID: <4D8...@gm...> > > Content-Type: text/plain; charset=UTF-8; format=flowed > > > > Hi, > > > > On 03/21/2011 04:54 AM, srividhya wrote: > > > > > > hi, > > > Am working on XSLTFORMS in eXistdb. Am > > trying to call jsp from > > > xquery on > > > XSLTFORMS but it is not working > > > > I don't think there's enough information in your question to > > figure out > > what's going on. Can you try: > > (1) A minimal but runnable example of the problem. Does the > > submission > > work, if, instead of calling JSP, you call an XQuery stored in > > the > > database? (A simple test query might just output the posted data > > to the > > console, for example, this one-liner: > > > > util:log-system-out(('DEBUG: Submitted data:', request:get-data())) > > > > ) > > (2) Use XSLTForms' debug mode to find whether the submission is > > ever > > being called, and if so, what status it returns (xforms-submit- > > done, > > xforms-submit-error) > > (2) Use Firefox's Firebug, Chrome's Developer Tools, or > > equivalent to > > watch network activity. When the submission is triggered: is > > there any > > network activity? If so, is what's being sent in the request > > what you > > think it should be? what's the response's status code? Is what > > you > > receive in response what you think it should be? > > > > Hope this helps, > > > > -- > > > > --- > > Efraim Feinstein > > Lead Developer > > Open Siddur Project > > http://opensiddur.net > > http://wiki.jewishliturgy.org > > > > > > > > > > ------------------------------ > > > > Message: 2 > > Date: Tue, 22 Mar 2011 10:56:13 +0100 > > From: COUTHURES Alain <ala...@ag...> > > Subject: [Xsltforms-support] Off-line XForms > > To: XSLTForms support <xsl...@li...>, > > Forms WG <pub...@w3...> > > Message-ID: <4D8...@ag...> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Hello, > > > > Having developed a .jar to allow to save/load files locally, I > > will > > probably show at XML Prague that off-line XForms is now possible > > with > > XSLTForms. > > > > I need a generic form for editing basic XML documents, at least > > limited > > to top level elements with attributes. Is it something that > > someone has > > already developed? > > > > Thanks! > > > > -Alain > > > > > > > > ------------------------------ > > > > Message: 3 > > Date: Tue, 22 Mar 2011 11:52:50 +0100 > > From: nde...@ak... > > Subject: Re: [Xsltforms-support] Off-line XForms > > To: COUTHURES Alain <ala...@ag...> > > Cc: Forms WG <pub...@w3...>, XSLTForms support > > <xsl...@li...> > > Message-ID: > > <OF5A744E79.D9C294D6-ONC125785B.003B9411- > > C12...@ak...>Content-Type: text/plain; charset="us- > > ascii" > > Try that > > > > http://debeissat.nicolas.free.fr/forms.php > > > > It generates a form which edits XML documents, from a RelaxNG > > schema. It > > is totally written in javascript. > > > > Regards > > Nicolas Debeissat > > > > > > > > > > > > De : > > COUTHURES Alain <ala...@ag...> > > A : > > XSLTForms support <xsl...@li...>, > > Forms WG > > <pub...@w3...> > > Date: > > 22/03/2011 10:55 > > Objet : > > [Xsltforms-support] Off-line XForms > > > > > > > > Hello, > > > > Having developed a .jar to allow to save/load files locally, I > > will > > probably show at XML Prague that off-line XForms is now possible > > with > > XSLTForms. > > > > I need a generic form for editing basic XML documents, at least > > limited > > to top level elements with attributes. Is it something that > > someone has > > already developed? > > > > Thanks! > > > > -Alain > > > > ----------------------------------------------------------------- > > ------------- > > Enable your software for Intel(R) Active Management Technology > > to meet the > > growing manageability and security demands of your customers. > > Businessesare taking advantage of Intel(R) vPro (TM) technology - > > will your software > > > > be a part of the solution? Download the Intel(R) Manageability > > Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > Message: 4 > > Date: Tue, 22 Mar 2011 09:42:03 -0400 > > From: Joe Wicentowski <jo...@gm...> > > Subject: Re: [Xsltforms-support] Off-line XForms > > To: COUTHURES Alain <ala...@ag...> > > Cc: XSLTForms support <xsl...@li...> > > Message-ID: > > <AAN...@ma...> > > Content-Type: text/plain; charset="utf-8" > > > > Alain, > > > > I have something that you might consider, if I understand you > > correctly. It handles elements and attributes, and flags mixed > > content as uneditable. > > > > Inspired by C.M. Sperberg-McQueen's "Introduction to XForms for XML > > Users" course, which was based around XSLTForms (see course materials > > at > > http://xforms201102.blackmesatech.com/), I decided to create a generic > > XML-to-XForms generator. ?The idea was to create a fairly > > generic "XML > > viewer" that would also let you edit content. ?It works well, except, > > of course, with mixed content - so I simply don't let nodes with mixed > > content be edited. > > > > I wrote this in the form of an XQuery application designed for > > eXist-db (I am using 1.5dev). I've attached the files > > here. ?Just > > unzip and drag the "xml2form" folder into your db (so you have > > /db/xml2form), and run > > http://localhost:8080/exist/rest/db/xml2form/xml2form.xq. ?This will > > pull up a form view of the "members.xml" file in the same directory. > > If you want to try running your own XML documents through, just use > > the "doc" URL parameter, e.g. xml2form.xq?doc=/db/path/to/file.xml. > > > > The part I'm happiest about is how it dynamically constructs the > > xf:input/@ref XPath value by counting ancestors - so if you view > > source on the generated code you'll see > > members[1]/member[2]/surname[1], etc. I also did a little > > extra work > > to make it work with namespaced documents, like TEI or DocBook > > documents. > > > > Hope you find it useful. > > > > Joe > > -------------- next part -------------- > > A non-text attachment was scrubbed... > > Name: xml2form.zip > > Type: application/zip > > Size: 120757 bytes > > Desc: not available > > > > ------------------------------ > > > > ----------------------------------------------------------------- > > ------------- > > Enable your software for Intel(R) Active Management Technology > > to meet the > > growing manageability and security demands of your customers. > > Businessesare taking advantage of Intel(R) vPro (TM) technology - > > will your software > > be a part of the solution? Download the Intel(R) Manageability > > Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > > > ------------------------------ > > > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > End of Xsltforms-support Digest, Vol 22, Issue 8 > > ************************************************ > > With thanks and Regards, > N.Srividhya(J.R.F) > O.T.C, > Chennai. > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |