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

2 Responses for 1 Request ?  RSS feed

 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers ....

I gotta admit, i dont really believe that this is possible, but i just wanna convince myself with your replies.

This is what i hope for :
1. user clicks a button
2. a save dialog pops up
And ....
the page refreshes !

Which means, after doing the
resp.setContentLength(data.length);
resp.setContentType("application/octet-stream");
... // fetch the writer, write the bytes, flushes ..
, and then ...
we'll return another response with "text/html" content type

Is this possible ?

Regards,
Albert Kam
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's not - 1 request means 1 response.
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Sheriff !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!