Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Save as file in html/xml  RSS feed

 
sridhar lakka
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks in advance.
I need to save a file in clients machine.For this how we can call a saveas popup, there is one command which is saving that in html and in title is showing HTML Document .
Regards,
Sree
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lookup the Content-Disposition header.
The search tool for this forum should find plenty of entries that discuss its use.

Also, this FAQ entry has some sample code that uses the Content-Disposition header.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!