• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not Display uploladed image in browser in jsp

 
sarojni agrwal
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This is the input tag of uploading image....




This is the code retrieving the image in another jsp page.(using jstl).

Screenshot_15.png
[Thumbnail for Screenshot_15.png]
this is the upload file , where i choose the image from desktop.
Screenshot_16.png
[Thumbnail for Screenshot_16.png]
uploaded image did not display here.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JspFaq for an entry on resource URLs. Your URL should be a server-relative URL starting with the context path. Just the name of the image isn't usually going to suffice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!