0

I have some image located at:

C:\Users\AshwinPC\Desktop\vemployee\src\main\webapp\upload

Now I want to display images at jsp using jstl tag library.But ,I am not getting the required output. I,tried like this :

<c:forEach items="${employees}" var="employee">
    <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">

        <div class="box-part text-center">

            <img src="C:\Users\AshwinPC\Desktop\vemployee\src\main\webapp\upload\'${employee.iNumber}'" />

        </div>
    </div>
</c:forEach>

Image is not being succesfully being displayed.When,I inspect then I see like this:

enter image description here

i123122 is the image saved at the location in my C:\Users\AshwinPC\Desktop\vemployee\src\main\webapp\upload. How to show the image?What is my mistake here?

Random guy
  • 883
  • 3
  • 11
  • 32

0 Answers0