Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Page cannot be displayed issue in jsp  RSS feed

 
kaneb rika
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I've got a question for everyone, why is it a message "Page cannot be displayed" occurs when downloading a huge data from the database. I can't seem to figure out why is it happen. Is it a browser issue or jsp issue?
Because if I am only getting a small amount of data, there's no problem on it. I can download an excel file from it. Can you please help me on this?

Thanks for the replies....
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"greenhorncow greenhorncow", please check your private messages. You can see them by clicking My Private Messages.
 
kaneb rika
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks for the reminders...
 
kaneb rika
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please answer my question ???
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some code, background on what you are trying to do, container used, browser used, can help us answer your question better
 
kaneb rika
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using IE browser version 6.0, here is my sample code:

First I make an excel file then after that, I compress the excel file to a zip file by using this headers.

I use this response to my header part:

response.setHeader("Expires", "0");
response.setContentType("application/zip");
response.setHeader("Content-Disposition", "attachment; filename=\"" + filename + '"');

Hope this will help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!