Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Use <html:img>tag

843838Aug 10 2005 — edited Aug 11 2005
hi all,
I am new to struts and jsp.

i had the imagename as hidden value
depending upon the imagename,i need to display the image....while form loading itself.that means without any action.
i need to pass that hidden value to the src attribute of the tag...that i don't know how to do.
however i tried to dispaly a particular image...
.here the image name s hardcorded as 2.jpeg..still not working.

I tried to display an image usig.....
the tag below.
<html:img src="/company_logo/2.jpeg" width="100" height="100" />
but the image is not getting displayed?
i don't know what i missed...anybody know pls help me.
Also i have one more doubt to clear.
How can i display image s dynamically.
ie,how can i specify src attribute....for dynamic displaying?
any help
thanx so much
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2005
Added on Aug 10 2005
2 comments
455 views