Hi,

as you want to have the color value to be displayed then you need to replace with below statement

pw.println("<body bgcolor = \""+color+"\">") ;

Thanks,
Raghu.