File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android 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>
I agree. Here's the link:
subject: display image in struts form?
It's not a secret anymore!