File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Content type Issue

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
I have a JSP page with content type set to
<%@ page contentType="application/"%>. 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é

Joined: Nov 24, 2005
Posts: 14688

Please do not crosspost. Thank you

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Content type Issue
It's not a secret anymore!