Re: [OT] Return Hashmap java object from servlet

2009-07-07 Thread Nils-Helge Garli Hegvik
What exactly are you trying to do? Do you want to serialize the hashmap to the client as a Java object, or do you want it converted to xml? What does the consuming end expect? If you really want to produce xml, take a look at one of the many java <-> xml libraries that exists (although, something a

Re: [OT] Return Hashmap java object from servlet

2009-07-07 Thread Musachy Barroso
was this a question? musachy On Tue, Jul 7, 2009 at 9:06 AM, Ashish Kulkarni wrote: > HiIs it possible to return Hashmap object from java Servlet,  What kind of > ContentType can i set to the response? > > The other option is to set data from HashMap into XML and return it as XML > file. > > for

[OT] Return Hashmap java object from servlet

2009-07-07 Thread Ashish Kulkarni
HiIs it possible to return Hashmap object from java Servlet, What kind of ContentType can i set to the response? The other option is to set data from HashMap into XML and return it as XML file. for example. I have servlet like below public class ReturnObjectServlet extends HttpServlet { public