This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Calling windows event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Calling windows event "Save As" from JSP" Watch "Calling windows event "Save As" from JSP" New topic
Author

Calling windows event "Save As" from JSP

KRK Gowda
Ranch Hand

Joined: Nov 02, 2004
Posts: 132
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

Joined: Apr 27, 2006
Posts: 95
you may need to convert the webpage file into a outputstream;
process this procedure in a servlet is preferred.


truehh@hotmail.com
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: Calling windows event "Save As" from JSP
 
Similar Threads
calling event from another.
Save a webpage as PDF or Excel file
core java
calling a webpage at the click of a button
Save a page as PDF or Excel file