Hello, explain how to display image1.jpg?
Structure:
enter image description here
I read similar topics, where it is written that images and other content should be located in the webapp folder, someone writes that they can be placed separately from the webapp folder (jstl is mentioned). ps Until now it is not clear why the pictures are not displayed at all, if the servlet contains urlPatterns = {"/"} below they were given a link, I just realized that this is a bad practice ..

  • one
    It's all about urlPatterns = {"/"} . Here at stackoverflow.com/questions/4140448/... one authoritative dude writes that this is a bad template for a servlet. Because of this, the standard handler overlaps, which among other things is responsible for the pictures. - Sergey
  • You can translate the answer from the link. I will not write so much, much less translate. And this dude is worth translating to java and web lovers. - Sergey

0