struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fumo, Vince" <Vince.F...@acs-inc.com>
Subject status messages in <html:link> tag
Date Thu, 31 Mar 2005 17:25:16 GMT
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">

2 questions...

1) is this the best way to do this?
2) if so, what can I use in the scriptlet (the getMessage() is fictional) to
access the message?

Thanks for your patience.. 


Vincent Fumo
System Development Specialist
ACS Municipal Services
Government Systems
609-823-6587
AIM : neodem2001


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


Mime
View raw message