File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Content type Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Content type Issue

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
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: 14687
    
  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
Problem in closing the browser
How to open the RTF format data in Netscape and IE
How to allow user to browse/provide local folder location/path for download
Displaying the File Download dialog box
content-type issue