Why not use

<a href='javascript:void(document.forms[0].submit())'><img
src='yourimage.gif'></a>

You do loose the i18n image name with this but to get it working it is fine.
Then you can look at the generated html from the tag and understand how to
get it working.

Edgar

> -----Original Message-----
> From: Pani, Gourav [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 28, 2003 2:02 PM
> To: 'Struts Users Mailing List'
> Subject: RE: using images for form buttons with LookupDispatchAction
> 
> 
> Additionally, has anyone used the ImageButtonBeanManager 
> available on SourceForge as a solution to my problem?
> 
> -----Original Message-----
> From: Pani, Gourav 
> Sent: Wednesday, May 28, 2003 1:53 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: using images for form buttons with LookupDispatchAction
> 
> 
> Sorry for the incomplete email
> 
>  
> the powers that be within my organization have passed a 
> decree that all form buttons have to use images because, 
> supposedly, html text buttons are too "ugly".  be that as it may.
>  
>  
> i am extending the LookupDispatchAction for all my Action 
> classes that have inserts/updates/searches etc in them.  the 
> following is an example of my action setup in struts-config.xml.
>  
>     <!-- Carrier related Action Mappings -->
>     <action 
>       path="/secure/CarrierAdmin" 
>       name="CarrierAdminForm" 
>       
> type="com.brightpoint.online.admin.control.carrier.CarrierAdminAction"
> 
>       scope="request" 
>       input="/jsp/admin/carrier/carrierAdmin.jsp" 
>       validate="false" 
>       parameter="action">
>       <forward name="show_carrier_admin" 
> path="/jsp/admin/carrier/carrierAdmin.jsp?action=view"/>
>     </action>
>  
> in my jsp, i was able to successfully get it to work in the 
> following way.
>  
>  
> <html:submit property="action" alt="Insert.">
>  <bean:message key="button.insert"/>
> </html:submit>
> <html:submit property="action">
>   <bean:message key="button.update"/>
> </html:submit>
>  
>  
> however, when i tried to use the html:image tag to do the 
> same thing, i got an error.
>  
> the following was my syntax for the html:image tag
>  
> <html:image src="/bpo/buttons/insert.gif" border="0" 
> alt="Insert." property="action" value="insert"/>
> 
> <html:image src="/bpo/buttons/update.gif" border="0" 
> alt="Update." property="action" value="update"/>
>  
>  
> the error i got on submitting by clicking on either of those 
> images was:
>  
> BrightpointOnline2.0 root appender [tcpConnection-6802-0] ERROR -
> ServletException:javax.servlet.ServletException:
> Request[/secure/CarrierAdmin] does not contain handler 
> parameter named action; 
>  
>  
> i guess the property with the html:image tag isn't being 
> translated like the html:submit is.  can anyone help me out 
> here?  i have scoured the web for a solution and none seemed to work.
>  
>  
> ted, craig?  anybody.
>  
> TIA.
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to