I know, that there are already several of similar questions but none of them fix my problem. I have a simple JSP
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Home Page</title>
</head>
<body>
<jsp:include page="_menu.jsp"></jsp:include>
<h3>Home Page</h3>
<table>
<tr>
<td>aha</td>
</tr>
</table>
${data.image}
<img src="images/wappen.jpg"/>
<img src="/images/wappen.jpg"/>
<img src="../images/wappen.jpg" alt=""/>
</body>
</html>
none of the images is displayed. JSP is located in war in WEB-INF/views jpg is located in war in folder images.
Directory structure:
-WebContent
- images (here are my jpgs)
- META-INF
- WEB-INF
- lib
- views (here are my jsps located)
The jsp is called via webServlet:
RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher("/WEB-INF/views/homeView.jsp");
dispatcher.forward(request, response);