broken image in html page

190 views Asked by At

Good day,

I am doing on Java with Struts2 framework. The below is my html code :

<html:image alt="Calendar" src="/images/icon_calendar.gif" />
<img alt="Calendar" src="/images/icon_calendar.gif" />

The first line of my image is working fine, the image is show correctly in my web page. ()

However, the second line of my html is not working. It is showing broken image in my web page. ()

Would like to ask, what mistake in my code.

Kindly advise.

1

There are 1 answers

0
Panadol Chong On BEST ANSWER

Good day,

The problem is solved once I have post this question.

I have tried to solved it for few days.

The correct code should be as follow:

<html:image alt="Calendar" src="/images/icon_calendar.gif" />
<img alt="Calendar" src="images/icon_calendar.gif" />