Respected Sir,
By using




function printPage()
{
window.print();
}

<input type="button" value="Print" name="print" onClick='printPage()'>


code on Jsp pages can i attached printer and print document.
And how can i use PrintPreview option. I want to print that page in some different looks (Editing printing page before print )