reset password
Author Message
Yehcheng
Posts: 10
Posted 12:15 Feb 21, 2013 |

Prof. Sun,

I have a question regarding how to put pictures in the jsps. The way i found on the internet is... to make a folder image and put the images in there and call it normally in the like in html but using EL.

C://...../images/${object.name}.jpg

A lot of website said that it is not the correct way to do it so I am wondering is there a better way or correct way to do it.

 

johncmorris
Posts: 1
Posted 12:16 Feb 21, 2013 |

How about html image tag???

cysun
Posts: 2935
Posted 15:25 Feb 21, 2013 |

Yes, like John said, just use the HTML image tag. Make sure that you place the images somewhere under WebContent except WEB-INF.