This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Response Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Response Problem" Watch "Response Problem" New topic

Response Problem

Abir Sarkar

Joined: Jun 18, 2002
Posts: 2
Hey guys,
Can any one help me with this one
I am using the response.getOutputStream()to create and write to an xml file.
This file is uploaded on the client side by using the following code
response.setHeader("Content-Disposition", "attachment; filename=\""+ sFileNamePath + "\";");
It uploads the file correctly at the client side. However after carrying out this function no other forwardto(req,resp) works.
In my application I have several other href links which calls other servlets.Even these do not work . NO error is displayed when the other href links are clicked.
I understand that once response is used for writing to the client side then it cannot be used for anything else.
But then how can I display another screen(jsp)to the client.
Beause of this my application stops working after the uploading is done.
For writing to the file I use XMLWriter w.
the strange thing is that it works perfectly well in Netscape4.7,6.0 and IE4.0,IE5.0.
However it gives the above problem in IE6.0 and IE5.5
Any answers?
Have you checked out Aspose?
subject: Response Problem
It's not a secret anymore!