• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Viewing data from database into an xls format not working

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am wondering if anybody could take a look at this code and tell me if they see why my application/vnd.ms-excel is not opening. I am getting no blatant errors in the code, the only thing that is concerning me is in certain bits of the code I get "Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc." for example, the setContentType("application/vnd.ms-excel"); says that note. below is the code. please help, or any suggestions are welcomed!
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Try doing this.


 
Jeff Foflygen
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I put the code in place that you suggested, no errors. Tomcat is installed and running. I go to launch and it does nothing, no errors, warnings, no succeeded, etc.... do I need to put in more code? it should just find the default excel and launch, correct?

thanks!
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

No, you dont need to put this in other code. It must open the download window as reponse. Why dont you try to execute it in mozilla firefox or google chrome ? because sometimes some browsers have popup blocker that blocks the download popup.

Cheers,
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser may be set to save XLS documents automatically without prompting the user - in which case it would show up in whatever directory is set as the default download directory.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic