• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

Servlet response header

 
Ranch Hand
Posts: 644
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

In the code I am trying to save the file in the excelsheet format.
Here is the code.

response.setContentType("text/csv");
response.setHeader("Content-Disposition","attachment;filename=DownloadData.csv");
ServletOutputStream ostream = response.getOutputStream();
ostream.flush();

Everything works fine.But once the file is saved or if the user cancels the action,after returning to the page all the buttons on the screen seems to not work at all.
I have to click a particular button on the screen which loads the data and then the other buttons work.What am I doing wrong in the above code.
I am using WLS8.1. on the server console i see below message

<Feb 24, 2005 4:15:18 PM EST> <Warning> <HTTP> <BEA-101324> <Some Browsers may fail when both "Content-Disposition" and "Cache-Control" are set.>

Thanks,
trupti
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think trupti you have to check your browser's setting.Both of the options are checked.It might be creating problems.So,just check your browser settings.
 
trupti nigam
Ranch Hand
Posts: 644
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do I check the browser settings?

Thanks,
Trupti
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic