How to display an image from the root content

Hi everybody,

I try to display an image from the root content (floder’s name : WebContent). I know that I must put the image in WebContent/VAADIN/themes… but here, I would like to put it in : WebContent/myimage.jpg

So, if I do :
http://localhost/MyProject/myimage.jpg
I’ll see my image.

How can I do ? Must I change the mapping ? How ?

Thank you !

EDIT : I find the solution.

My mapping is :

Uicomponent Application
/ui/*

So, “http://localhost/MyProject/myimage.jpg” works :slight_smile:

Sorry for the dummy question !

Remember that if you map a sub-path of [tt]
/*
[/tt] to the servlet, you also need to map [tt]
/VAADIN/*
[/tt] to it.

And of course, i forgot it :unsure:

Tanks !