Hello ,
As a part of my project, I am doing some Prototype development which
requires custom provider for dojo grid.
I could successfully run my custom provider on WAS 7, but when i deployed
it on Apache tomcat 6.0.20 even though it is not giving any error. In
response content is null.
This is the code snapshot of my custom provider :-
in writeTo method
.
.
.
//Call back param
String callbackParam = null;
try {
callbackParam = (String)this.uriInfo
.getQueryParameters().getFirst("callback");
}
catch (Exception e) {
logger.trace("Could not get the URI
callback param", e);
}
mediaType = MediaTypeUtils.
setDefaultCharsetOnMediaTypeHeader(map, mediaType);
Charset charset = Charset.forName(ProviderUtils.
getCharset(mediaType));
OutputStreamWriter writer = new
OutputStreamWriter(outputStream,charset);
System.out.println("Call back param "
+callbackParam);
if (callbackParam != null) {
writer.write(callbackParam);
}
//writing my json string
writer.write(finalJsonString);
writer.flush();