Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Can we get PrintWriter and ServletOutputStream both in a servlet? give reason for your answer?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2013/09/25
Saba Wasim
by Saba Wasim , IT Project Manager, Solution Manager , COTSYS

Yes, You can use both, but make sure the data you are retriving back.

 

printwriter is being used for char based data outpur like data from database. It is also do a unicode char conversion.

for bit streams like getting images you should use serveroutputstream.

 

 

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.