struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd G. Nist" <>
Subject RE: how to use an images for submit, cancel button etc
Date Fri, 22 Feb 2002 16:13:23 GMT
You could try something like the below:

for cancel you could do this:

	<html:image src="images/cancel.gif" border="0"

for the others you would need to do something like:
<html:link href="javascript:submit();">
	<html:image src="images/save.gif" value="save" border="0"/>


Todd G. Nist

-----Original Message-----
From: KM []
Sent: Friday, February 22, 2002 10:27 AM
To: Struts Users Mailing List
Subject: how to use an images for submit, cancel button etc


I am trying to develop a page where the user has to
select options from a drop down box and either clicks
submit or cancel. The submit and cancel options are
images instead of a button

Following is my code

    <td align="right">
      <logic:equal name="subscriptionForm"
                  scope="request" value="Create">
          <bean:message key=""/>
      <logic:equal name="subscriptionForm"
                  scope="request" value="Delete">
          <bean:message key="button.confirm"/>
      <logic:equal name="subscriptionForm"
                  scope="request" value="Edit">
          <bean:message key=""/>
    <td align="left">
      <logic:notEqual name="subscriptionForm"
                     scope="request" value="Delete">
          <bean:message key="button.reset"/>
        <bean:message key="button.cancel"/>

here instead of the save, reset, cancel buttons I
would like to user save.gif, reset.gif, cancel.gif etc
.How to set up struts to use this..

Any tips on how to do this is appreciated


Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message