B4J Question Jetty Server - Prevent a folder from display

hatzisn

Expert
Licensed User
Longtime User
Good morning everyone,

Let's imagine we are creating a webapp with jetty server and under "www" folder we have a folder named "img" for images. If I navigate to http://localhost:{port}/img. It displays a list with the files apparent there. I found out that if I place an empty html page (<html><body></body></html>) in this folder and name it index.html it displays this page and does not display the incredients of the folder. Is there a better way to do this?
 
Top