Login  Register

Re: From java servlet to orbeon context

Posted by Alessandro Vernet on Jul 16, 2009; 7:51am
URL: https://discuss.orbeon.com/From-java-servlet-to-orbeon-context-tp44958p44959.html

Bart,

bartottenkamp wrote
I'm looking for is a way to get a hold on a model instance (an xml instance)
in a 'normal' servlet living in the same container as my orbeon processors.
I think I should be able to derive it using the sessionid from the request
to my servlet I think?
Does anybody know how I'll do that?
I think I should start with getting the orbeon context?

So, in my xhtml file I have this instance:

            <xforms:instance id = "form-instance">
                <form name = "AAAAA">
                    <formcontent>
........
     </formcontent>
   </form>
</forms:instance>

which is the instance that holds my form data and for which the state is
kept on the server.
If you'd like to access in your servlet to an instance with the data entered by the user in an XForms form, then you need to submit the instance from XForms to your servlet with an <xforms:submission>. Here your servlet living in the same web app doesn't really make a difference. I hope this helps,

Alex