In which container do you try it to run and what is the whole exception?
Or do you speak of something else when saying "run". Please be more specific when describing errors, this will make it easier for people to help you.
btw ... setContentType is a method of ServletResponse and HttpServletResponse, and not of HttpServlet, of which type your res is.
SCEA5, Certified ScrumMaster
Joined: Mar 19, 2009
Thanks for your help.
I changed the res object type to HttpServletResponse and it worked.
By the way i use tags but it got all unformatted on pasting.