Sign in to Community
Sign in to view all badges
Expand my Community achievements bar.
We need to display xml as response on the browser when a user enters a servlet path in the URL:
I have set response ContentType to "text/xml". and written response as :
BufferedOutputStream outStream = new BufferedOutputStream(response.getOutputStream()); outStream.write("<to>Punit</to><from>Jindal</from>".getBytes());
But, it displays nothing on the browser. Any idea?