wood burning stoves 2.0*
The moose likes Servlets and the fly likes Servlet response header 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 » Java » Servlets
Bookmark "Servlet response header" Watch "Servlet response header" New topic

Servlet response header

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Hello All,

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

ServletOutputStream ostream = response.getOutputStream();

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.>

Vijay Sharma
Ranch Hand

Joined: Feb 02, 2005
Posts: 32
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.

Vijay Sharma
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
How do I check the browser settings?

I agree. Here's the link: http://aspose.com/file-tools
subject: Servlet response header
Similar Threads
Junk characters while reading an excel file
Junk characters while reading excel file
to format numbers in within-jsp-created-excel sheet
How can I download a file from a jsp?
export data from JSP to text file