This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See servlet that will process some information from the database and then must return a XML file to the user. How can I automaticaly send the result XML file to the client in the servlet, meaning, how can the browser present a message where the user is asked where to save the file?

A second question, not directly related to servlets, what is the best package to create the XML file? I'm testing with but I'm affraid that this could not handle the XML file that can be up to 140Mb or even more!

Author and ninkuma
Posts: 66425
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set your content-type and content-disposition headers as appropriate for the type of activity you'd like.

Your unrelated question should be asked in another forum.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!