Submit Xforms to servlet, get the whole form?

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

Submit Xforms to servlet, get the whole form?

jontto
Hi,

I'm submitting with POST an xforms from a servlet to it self. Can I get the whole xforms document from the request somehow, now I'm only getting the xforms:model part of it from request.getInputStream()

Thanks for any answer,
Jonas
Reply | Threaded
Open this post in threaded view
|

Re: Submit Xforms to servlet, get the whole form?

Erik Bruchez
Administrator
Could you reformulate your question with more details?

-Erik

On Jan 23, 2009, at 5:58 AM, jontto wrote:

>
> Hi,
>
> I'm submitting with POST an xforms from a servlet to it self. Can I  
> get the
> whole xforms document from the request somehow, now I'm only getting  
> the
> xforms:model part of it from request.getInputStream()
>
> Thanks for any answer,
> Jonas
> --
> View this message in context: http://www.nabble.com/Submit-Xforms-to-servlet%2C-get-the-whole-form--tp21624850p21624850.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

Re: Submit Xforms to servlet, get the whole form?

jontto
Ok, I'll try to be a bit clearer.

I have a servlet which gets a xforms in a string and uses the filter to render this form to the browser. In the form I have a POST submission to the servlet itself and grab that with doPost() in the servlet.

If I examine the request.getInputStream() I find the <xforms:model> part of my original xform with the submitted data, but I'm missing the rest of the form. Is it possible to make a submission in such a way, that I would get not only the <xforms:model>, but the whole xform with the updated <xforms:model> included?

// Jonas

Erik Bruchez wrote
Could you reformulate your question with more details?

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: Re: Submit Xforms to servlet, get the whole form?

Erik Bruchez
Administrator
Jonas,

When your XForms page performs a submission, it sends the XML document  
referred to by the @ref attribute on xforms:submission. That document  
should not include an xforms:model element. Are you saying that in  
your case you are receiving an xforms:model element?

What version of Orbeon Forms are you using?

-Erik

On Jan 26, 2009, at 12:22 AM, jontto wrote:

>
> Ok, I'll try to be a bit clearer.
>
> I have a servlet which gets a xforms in a string and uses the filter  
> to
> render this form to the browser. In the form I have a POST  
> submission to the
> servlet itself and grab that with doPost() in the servlet.
>
> If I examine the request.getInputStream() I find the <xforms:model>  
> part of
> my original xform with the submitted data, but I'm missing the rest  
> of the
> form. Is it possible to make a submission in such a way, that I  
> would get
> not only the <xforms:model>, but the whole xform with the updated
> <xforms:model> included?
>
> // Jonas
>
>
> Erik Bruchez wrote:
>>
>> Could you reformulate your question with more details?
>>
>> -Erik
>>
>
> --
> View this message in context: http://www.nabble.com/Submit-Xforms-to-servlet%2C-get-the-whole-form--tp21624850p21661850.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 for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Submit Xforms to servlet, get the whole form?

Ingoba

Even I got the same but I would like to get the form data. My sample code is :  
<xf:model>
                    <xf:instance  id="handheld-instance"    src="/Hct_Orbeon/model/template_config_ss60.xml"/>
                    <xf:submission action="/Hct_Orbeon/xforms-server-submit"
                               method="post" id="change" />
            </xf:model>

So I would to get the content of the XML file i.e., template_config_ss60.xml as a requerst data. But I couldn't get it properly. Plesae help me.

Ingoba