"user wants save the account statement instead of
seeing the account statement how to do this"
Are you talking about saving the account statement on client side. If it is so, this is not a problem. You have to first write the account statement, in a file say a text file on the server side and send that file to the client side using ServletOutputStream. This account statement can be generated on-fly and the user will be prompted to save the file. The user can thus save the account statement on his own hard disk.
Hope this helps.
If you need more help, keep posting.
Hi
You can do this using javascript. Display the content in browser. You can place "Save Account Statement" button. On click it will call a javascript function.
<input type=button onClick="Javascript:SaveAccountInfo();>
javascript code
function SaveAccountInfo()
{
document.execCommand('SaveAs');
}
It will open a file save as dialog to save the file.
It will solve your problem.
keep posted me progress..
Prakash
">