| 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.
|
 |
 |
|
|
subject: Unable to display image in Login html form in Spring Web MCV
|
|
|