Two Laptop Bag*
The moose likes Struts and the fly likes display image in struts form? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display image in struts form?" Watch "display image in struts form?" New topic

display image in struts form?

michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
I use this code try to display image, but cannot work...
<html:image src="\jsp\images\calendar.gif">

Any one can post a sample code?Thanks!

michelle Wang <br />SCJP 1.4
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
url's use forward slashes...e.g <html:image src="/jsp/images/calendar.gif">

-/a<br />certified slacker...yes, my last name is 'do' - <a href="" target="_blank" rel="nofollow"></a>
It is sorta covered in the JavaRanch Style Guide.
subject: display image in struts form?
Similar Threads
How to show image link using display tag
Help with paint to panel
it gives me error when adding a image to drawble folder