I have a simple servlet responding to get requests. In my request
response i always seem to be getting the request.status as 0.
try {
array.put("data1","Hello");
array.put("data2","World");
array.put("data3","Good");
array.put("data4","Morning");
} catch (JSONException e) {
e.printStackTrace();
}
pResp.setContentType("text/html; charset=UTF-8");
pResp.setContentType("text/xml");
pResp.setHeader("Cache-Control", "no-cache");
System.out.print(array.toString());
pResp.getWriter().print(array.toString());
i have pasted the sample code...
However the same sample app when i try it on GAE for python it seems
to be working fine. So i am confused on whether im missing anything in
the GAE configuration for java.
Would really appreciate any help in this.
Thanks
..
Karthik
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.