How to send and pictures and markup? I OutputStream picture in the OutputStream , set setContentType("imeg/jpeg") . All the rules, but these pictures I want to send more than one! + there must be some markup. There are certainly options to use <img src=""...> in JSP, but this file needs to be first created, and this is all the time. What to do?

  • What does the phrase "but you need to create the file first, but this all the time"? - Sergey Gornostaev
  • time to create a file, so I immediately record everything in the output stream, and so I have to first create the file, therefore the time to process the request will increase - Denis
  • No files need to be created. Once you create a jsp-template once at the development stage, it is compiled into a servlet and it remains only at the execution stage to transfer the necessary data to it. - Sergey Gornostaev
  • I'm talking about the image file. Those. To use <img scr = ""> I will first have to create this file. And so I immediately write down from the input to the outlet - Denis
  • one
    You can give the image from the servlet, and in the src attribute specify the address of this servlet. - Sergey Gornostaev

0