File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Help in using image tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help in using image tag" Watch "Help in using image tag" New topic

Help in using image tag

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 131
I have HTML image tag where in i want to swap the
image on mouse over event, i want to get the mouse
over image also from the properties file, how can i do
Here is the tag i am using, but i have hard coded the
value for onmouseover.
I have different images for different languages..
Is there any other way to do it
Need help
"<" html:image property="add"
on click="javascript:setAction('add')" srcKey
="button.addoff" onmouse out="MM_swapImgRestore()"
onmouse over="MM_swapImage('add','','../images/en/buttons/add_on.gif',1)"/">"

Jason Menard

Joined: Nov 09, 2000
Posts: 6450
Try using regular (non-Struts) html with a <bean:message> tag inside the "onMouseOver" attribute.
I agree. Here's the link:
subject: Help in using image tag
It's not a secret anymore!