File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with html:img

 
srinivas.b
Ranch Hand
Posts: 58
  • 0
  • 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
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic