Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

txt file not opening in XP environment.

Status
Not open for further replies.

mithra

Programmer
May 26, 2000
21
0
0
IN
Please look into the code ...

response.setContentType("application/text");
response.setHeader("Content-Disposition", "attachment; filename=" +
fileName);
ServletOutputStream os = response.getOutputStream();

try {
......
.....
......
}catch(){
}
os.println(<data>);
os.flush();

This cade works fine . But in Windows XP environment it fails. The target is that whenever i click on the link that should open as a text
(CSV also ) open or save dailog comes and if I click on save works fine. But If i click on OPen it is not opening in windows Xp environment but some
times opens in windows 2000 environment.
The error it gives : Cannot find the c:\Decuments and settings\<User>\Local
Settings\Temporary Internet Files\Content.IE5\T2UG9J4K\<filename>.txt file. Do you want to create one ?

Any Idea ???
Thanks in advance.
 
Is this a typo? c:\Decuments and settings\

Should be c:\Documents and settings
There's always a better way. The fun is trying to find it!
 
It is c:\Documents and settings\ and not
c:\Decuments and settings.......
Thanks for the reply.
I know that its fun to find a solution , but if any one already faced this problem, its not good to spend time on this !!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top