File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Issue with html:img Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Issue with html:img" Watch "Issue with html:img" New topic

Issue with html:img

Ranch Hand

Joined: Oct 26, 2006
Posts: 58
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

Joined: Apr 09, 2006
Posts: 35
Try changing attribute src value to start from root of the application rather than relative to its current location

Thanks<br />Sid
I agree. Here's the link:
subject: Issue with html:img
It's not a secret anymore!