The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

OVSD5.1 DB and UI Action Data Exchange with External System.

Highlighted

OVSD5.1 DB and UI Action Data Exchange with External System.

I am trying Data exchange with External System (the Http post thing) from a UI (or DB) rule in OVSD5.10, but can only get the error 'The results array of the External Data Provider is wrong size. I use Tomcat, supplied with service pages (my code is JSP)
After some tests I found follow: In response from Tomcat I get not only my out.print(“n_fields=1&field_0=mydata”); but additionally new line for any <@page include= ...> directive.

Simple example code:

<%@page import="java.util.*"%>
<%
out.print("n_fields=1&field_0=mydata" );
%>

If you look at source page in browser, you can see empty line. Number of this empty lines equals number of <%@page import=" expressions. If you remove it from this code - no empty line.
This empty line is no sense for browsers and SD4.5, but on SD5.1 it generate error.

So, does anybody new how to fix it? May be some switches on tomcat ? My be change tomcat compiler ?


//Add this to "OnDomLoad" event