my dog learned polymorphism
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Downloading Excel file in jsp" Watch "Downloading Excel file in jsp" New topic

Downloading Excel file in jsp

Ganeshkumar cheekati
Ranch Hand

Joined: Oct 13, 2008
Posts: 362
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

Joined: Jul 29, 2008
Posts: 3930

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:
subject: Downloading Excel file in jsp
It's not a secret anymore!