struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyalla, Raveendra" <Raveendra.Boya...@dfa.state.ny.us>
Subject RE: how to use an images for submit, cancel button etc
Date Fri, 22 Feb 2002 17:16:47 GMT
Hi


How can I code for onBlur event of a Text tag.


Regards,

Raveendra Boyalla

-----Original Message-----
From: Todd G. Nist [mailto:tnist@bellsouth.net]
Sent: Friday, February 22, 2002 11:13 AM
To: 'Struts Users Mailing List'
Subject: RE: how to use an images for submit, cancel button etc 


You could try something like the below:

for cancel you could do this:

	<html:image src="images/cancel.gif" border="0"
	property="org.apache.struts.taglib.html.CANCEL"/>

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"/>
</html:link>

Regards,

Todd G. Nist

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


Hi

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


<tr>
    <td align="right">
      <logic:equal name="subscriptionForm"
property="action"
                  scope="request" value="Create">
        <html:submit>
          <bean:message key="button.save"/>
        </html:submit>
      </logic:equal>
      <logic:equal name="subscriptionForm"
property="action"
                  scope="request" value="Delete">
        <html:submit>
          <bean:message key="button.confirm"/>
        </html:submit>
      </logic:equal>
      <logic:equal name="subscriptionForm"
property="action"
                  scope="request" value="Edit">
        <html:submit>
          <bean:message key="button.save"/>
        </html:submit>
      </logic:equal>
    </td>
    <td align="left">
      <logic:notEqual name="subscriptionForm"
property="action"
                     scope="request" value="Delete">
        <html:reset>
          <bean:message key="button.reset"/>
        </html:reset>
      </logic:notEqual>
      &nbsp;
      <html:cancel>
        <bean:message key="button.cancel"/>
      </html:cancel>
    </td>
  </tr>

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

KM



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message