File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Unable to display image in Login html form  in Spring Web MCV Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Unable to display image in Login html form  in Spring Web MCV" Watch "Unable to display image in Login html form  in Spring Web MCV" New topic
Author

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

Nagaraju Mulinti
Ranch Hand

Joined: Aug 10, 2008
Posts: 36
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
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 461

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..


Regards, Prasad
SCJP 5 (93%)
Mike Wirth
Greenhorn

Joined: Apr 21, 2011
Posts: 1

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.
 
IntelliJ Java IDE
 
subject: Unable to display image in Login html form in Spring Web MCV
 
Threads others viewed
Passing values through html
img tag in jsp
<img> tag not showing the image
Context Path Still Won't Display an Image
Add a link to submit button
MyEclipse, The Clear Choice