Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with html:img

 
srinivas.b
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a changepassword JSP page wich contains Image.firsttime i am getting the image if i hit the page directly.
once the username and password are entered wrongly i need to show the same JSP page but this time it goes to action and displaying the page but the image is not visible.

first time : I am able to see the image
<html:img src="../images/unet_banner.gif" align="left"/>

once going to action and displaying the same page i am unable to view the image.

Please help me . I will be very thank full.
 
Siddharth Naik
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing attribute src value to start from root of the application rather than relative to its current location
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic