is there a way to bypass orbeon post processing of jsp output at runtime

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

is there a way to bypass orbeon post processing of jsp output at runtime

mv288
is there a way to bypass orbeon post processing of jsp output at runtime?.

Depending on the user input, a jsp inside /xforms-jsp/ returns application/vnd.fdf or application/xml.

Everything works fine when the output is application/xml but I see a 500 internal error when
jsp response is application/vnd.fdf.

Is there a way to disable orbeon post processing when returning application/vnd.fdf or other non-xml format?.

Part of the exception output html.

</li>
</ul>

Error Message

<p class="orbeon-error-panel-message">Fatal error: Content is not allowed in prolog.</p>
<div id="orbeon-error-panel-details-hidden">
Reply | Threaded
Open this post in threaded view
|

Re: is there a way to bypass orbeon post processing of jsp output at runtime

Erik Bruchez
Administrator
Currently the XForms filter always tries to parse the XML.

The content received is stored as a string into the request:

https://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/servlet/OrbeonXFormsFilter.java#L91

And then the xforms-renderer.xpl pipeline parses it as XML:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/ops/xforms/xforms-renderer.xpl#L33

Now the filter could be modified to do something different if the
content is not XML.

-Erik

On Wed, Jul 13, 2011 at 1:53 AM, mv288 <[hidden email]> wrote:

> is there a way to bypass orbeon post processing of jsp output at runtime?.
>
> Depending on the user input, a jsp inside /xforms-jsp/ returns
> application/vnd.fdf or application/xml.
>
> Everything works fine when the output is application/xml but I see a 500
> internal error when
> jsp response is application/vnd.fdf.
>
> Is there a way to disable orbeon post processing when returning
> application/vnd.fdf or other non-xml format?.
>
> Part of the exception output html.
>
> </li>
> </ul>
> Error Message
>
> <p class="orbeon-error-panel-message">Fatal error: Content is not allowed in
> prolog.</p>
> <div id="orbeon-error-panel-details-hidden">
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/is-there-a-way-to-bypass-orbeon-post-processing-of-jsp-output-at-runtime-tp3664531p3664531.html
> Sent from the Orbeon Forms (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
>
>


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