This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Content type Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Content type Issue

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1493
I have a JSP page with content type set to
<%@ page contentType="application/vnd.ms-excel"%>. I also have some javascript code in it, but seems it is not working. Can I have script inside a JSP page of this kind?

Since i have set the content type, the page asks for "open or save dialog". I want to close the parent window (the IE) on clicking "save". However, the "open" option is working fine. Is it also possible to prevent the dialog-from getting displayed, and simply bypass to "open" option.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14685
    
  16

Please do not crosspost. Thank you
http://www.coderanch.com/t/290669/JSP/java/content-type


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Content type Issue
 
Similar Threads
How to open the RTF format data in Netscape and IE
content-type issue
Displaying the File Download dialog box
How to allow user to browse/provide local folder location/path for download
Problem in closing the browser