Fumo, Vince wrote:
I want to implement a status message on a rollover for some of my links. I
was considering doing something like:

<html:link href="http://www.google.com"; target="_blank"
onmouseover="window.status='Go go google';return true">

which works fine.

However, what I really want to do is pull the status message from my struts
message-resources bundle for I18N. The only way I can think to do this is to
use a scriptlet like :

<html:link href="http://www.google.com"; target="_blank" onmouseover="window.status='<% getMessage("message.key");%>';return true">

Off the top of my head, you could try something like this -

<bean:define id="rollOverText" type="java.lang.String"><bean:message key="my.key" 
/></bean:define>
<html:link href="http://www.google.com"; target="_blank" 
onmouseover="window.status='<%=rollOverText%>'; return true;">...

--
Bob Arnott


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



Reply via email to