• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Unable to display image in Login html form in Spring Web MCV

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Im trying to display image in Login form using HTML, but I am unable to display it, It only shows 'X' with red mark.
I request all to review my code and let me know If I am wrong in anywhere.

Thanks in advance..!

Please find the below is my Login.html code.







I have the image in images folder like below

WEB-INF --- > images -- home.gif
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Open the application in Mozilla, and right click on that X Red mark, and can you tell us what is the url it's going to? Also, try ./WEB-INF/images/home.gif and let us know..
 
Greenhorn
Posts: 1
Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Resources in /WEB-INF are protected and you can't access it directly from the web. You need to move the image in the root folder (/images/home.gif) or load it via servlet.
reply
    Bookmark Topic Watch Topic
  • New Topic