> Is there a struts tags for an input image?

Assuming you mean a SUBMIT button with an image on it instead of text,
here's what I'm using:

<html-el:submit property="submit"  onclick="setAction('Add Prospect');"
styleClass="addButton" titleKey="button.add.prospect" value="     "/>

And here's the style that goes with it:

.addButton {
        background-image:url(images/add.gif);
        background-position:center;
        background-repeat:no-repeat;
        background-color:lt grey
        }

The setAction javascript is necessary because you can't have a "value"
without the text appearing on the button.  (Or, I couldn't figure out how.)
So I put a value into the hidden 'action' form field and then use that in a
LookupDispatchAction:

function setAction(target) {document.forms[0].action.value=target;}

It took a long time to piece all this together.  Hope it helps someone else!

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to