Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

want an image as background in response to a request

 
Sid Sharama
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
in response to a requset the servlet should generate an html page.and that html page's background should be an image.
how do i do it?
one more,
with in the same servlet can i keep changing the content type of the response like
out = res.getWriter();
res.setContentType("text/html");
//generate response
out.close();

out = res.getWriter();
res.setContentType("text/plain");
//generate response
thank you,
sri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic