I´m using the FileServlet from Omnifaces: http://showcase.omnifaces.org/servlets/FileServlet
It works fine and all my images appears in my webapp. But now I would like to change the link from the image because I would like to avoid that someone enter the path from another image:
For example: The path from one image is: myapp/imagesservlet/mypic1.jpg
-> Someone can enter myapp/imagesservlet/mypic2.jpg -> and got another image.
My files are stored as: mypic like mypic1.jpg, mypic2.jpg.....
Is there any chance to change the path and got also the correct image?