Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling windows event "Save As" from JSP

 
KRK Gowda
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a requirement to save a file that is displayed as webpage. i want a popup to appear and ask user. I want to provide Save As option in my webpage but i dont know how to call windows event for Save As.
Can anybody tell me how to call windows event Save As from JSP.

Thanks and Regards,
 
Joshua Cloch
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you may need to convert the webpage file into a outputstream;
process this procedure in a servlet is preferred.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search this and the Servlets forum for "Content-Disposition".
This tag is responsible for suggesting to a browser how to handle a resposnse.

The JspAndExcel entry in our JSP FAQ has some example code that uses this header tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic