Would you please give me the exact syntax? What if I want to use this image 
as a submit button?

Thanks very much. 

Tim 

Kristopher Brown writes: 

> Hope I'm not missing the point, but I think the standard struts html:img tag covers 
>this already with the altKey attribute and the srcKey or pageKey attribute. 
> 
>> -----Original Message-----
>> From: Roman Rytov [mailto:[EMAIL PROTECTED]]
>> Sent: 10 June 2002 09:56
>> To: Struts Users Mailing List
>> Subject: RE: i18n and images? 
>> 
>> 
>> I agree that this is a solution. But don't forget I need to 
>> store also tips (alt's attribute values) for every image 
>> hence I need a second file. Two drawbacks arose: 
>> synchronization between files is up to me and the code becomes ugly: 
>> 
>> <img src="images/<bean:message key='sampleImage'/>" 
>> alt=<bean:message key='alt.sampleImage'/>">
>>  
>> But I agree it's better than nothing. 
>> 
>>  
>> 
>> 
>> -----Original Message-----
>> From: Yaman Kumar [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, June 10, 2002 11:47
>> To: Struts Users Mailing List
>> Subject: RE: i18n and images? 
>> 
>> 
>> Hi,
>> If I understand your question properly, keep all images of 
>> application in a
>> dir
>> and write these images names in properties file(i18n_*.properties)
>> with key names and in jsp page call that key name. 
>> 
>> Example.
>> suppose you need to display an image (x1.gif) for en locale
>> and other image(x2.gif) for fr locale.
>> then in your properties file Application resources or I18N props file)
>> In *_en.properties maintain a key sampleImage = x1.gif,
>> In *_fr.properties maintain a key sampleImage = x2.gif. 
>> 
>> and in your jsp call <img src="images/<bean:message 
>> key='sampleImage'/>" >
>> to render it in page. 
>> 
>> HTH
>> TIA
>> rayaku 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> 
> 
 









Free Email & DynDNS @ www.zeropain.com 
Get your website hosted with zeropain.com

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

Reply via email to