This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes want an image as background in response to a request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "want an image as background in response to a request" Watch "want an image as background in response to a request" New topic
Author

want an image as background in response to a request

Sid Sharama
Greenhorn

Joined: Feb 06, 2005
Posts: 11
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
 
GeeCON Prague 2014
 
subject: want an image as background in response to a request