File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Downloading Excel file in jsp 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 » Engineering » HTML, CSS and JavaScript
Bookmark "Downloading Excel file in jsp" Watch "Downloading Excel file in jsp" New topic
Author

Downloading Excel file in jsp

Ganeshkumar cheekati
Ranch Hand

Joined: Oct 13, 2008
Posts: 362
Hi
I am trying to download excel file and this is my jsp code





javascript code to open new window..




its acting differently in different versions of IE..
IN IE6 excel sheet is opening in new window which i provided in javascript...

but in ie8 excel sheet is opening in normal sheet format istead of opening in new window using javascript..

Can anyone give me solution ?

Thanks in advance...


SCJP5 and SCWCD1.5
Think Twice Act Wise...
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3029
    
  35

If your question had something to do with Java, I'd say that first you should move all these Java codes away from your JSP, as the purpose of a JSP is only to provide the output as a viewer component - it shouldn't have any business logic to be done with pure Java code.
For now, this question looks like more related to JavaScript - moving this to HTML/JavaScript forum.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Downloading Excel file in jsp
 
Similar Threads
Configuring Tomcat 5 on Win2K and Linux
Mistakenly changed web.xml
Download file HELP?
Apache2 / Tomcat 6 / GWT 2.0 - Could use some help
getOutputStream() has already been called for this response