Retrieving Errors

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

Retrieving Errors

victor panizza-2
Hello All.
I'm newbie with Orbeon server.

I'm working with tomcat and I have deployed some servlets that response xml.
Some errors could be thrown from the servlet layer and I'm trying to figure out how to retrieve the error messages from the servlet to display it in a xforms:message

Any Idea, thanks in advance!!!


8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime shortcut.

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Retrieving Errors

Alessandro Vernet
Administrator
Hi Victor,

Inside the <xforms:submission> that calls your servlet, try to define
an <xforms:action ev:event="xforms-submit-error"> that handles the
case where there is an error. Inside that you can access the body of
the HTML error page returned by your servlet in XPath with
event('body').

<xforms:submission>
    <xforms:action ev:event="xforms-submit-error">
        <xforms:setvalue ref="..." value="event('body')"/>
    </xforms:action>
</xforms:submission>

Alex

On 3/8/07, victor panizza <[hidden email]> wrote:

> Hello All.
> I'm newbie with Orbeon server.
>
> I'm working with tomcat and I have deployed some servlets that response xml.
> Some errors could be thrown from the servlet layer and I'm trying to figure
> out how to retrieve the error messages from the servlet to display it in a
> xforms:message
>
> Any Idea, thanks in advance!!!
>
>
>  ________________________________
> 8:00? 8:25? 8:40? Find a flick in no time
>  with theYahoo! Search movie showtime shortcut.
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws