Reputation: 113
I know there is some mistake I'm making but I can't figure out what it is. Please help me out.
This is my project folder structure.
I tried below -
background="<%=request.getContextPath()%>/images/backgroundImage.jpg"
background="images/backgroundImage.jpg"
for body tag.
I tried that css url also.
I'm getting same error in my browser console.
What am I doing wrong?
Upvotes: 0
Views: 726
Reputation: 3086
Man I will suggest you to create a folder resources
under webcontent
. Put all your images inside there.
Then in your jsp page map that image like
<img src="/resources/backgroundImage.jpg"" alt="View" style="width:304px;height:228px;">
Upvotes: 2