struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject RE: Javascript & bean:message
Date Wed, 22 Jan 2003 13:53:40 GMT
<bean:define id="buttonSearchMessage">
  <bean:message key="button.search"/>
</bean:define>

<html:somethingorother onchange='<%= "myFunction(" +
                                     buttonSearchMessage +
                                     ")" %>'/>

Quoting Andrew Hill <andrew.david.hill@gridnode.com>:

> Yeh, but if your using a tag already:
> 
> <html:somethingorother onchange="<bean:message...
> 
> It aint gonna work (cant nest jsp tags in attributes of other jsp tags).
> But if you have normal html:
> 
> <input type="checkbox" onchange="<bean:message...
> 
> then it will...
> 
> -----Original Message-----
> From: Cook, Graham [mailto:graham.cook@cgey.com]
> Sent: Wednesday, 22 January 2003 21:15
> To: 'Struts Users Mailing List'
> Subject: RE: Javascript & bean:message
> 
> 
> mmmm, all i wanted to do was get the value from the application.properties
> and pass it in through a JavaScript function as an argument?
> 
> -----Original Message-----
> From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> Sent: 22 January 2003 12:37
> To: Struts Users Mailing List
> Subject: RE: Javascript & bean:message
> 
> 
> AFAIK that would depend on whether the tag in which that onchange is an
> attribute is a JSP tag or normal html.
> 
> -----Original Message-----
> From: Cook, Graham [mailto:graham.cook@cgey.com]
> Sent: Wednesday, 22 January 2003 20:32
> To: Struts User List
> Subject: Javascript & bean:message
> 
> 
> Is it possible to have a <bean:message> tag as a parameter to a javscript
> method?
> 
> ie.
> 	onchange="javascript:myFunction(<bean:message
> key='button.search'/>)" />
> 
> 
> 
> 
> 
> ****************************************************************************
> ****************
> " This message contains information that may be privileged or confidential
> and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for
> the person to whom it is addressed. If you are not the intended recipient,
> you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or
> use
> this message or any part thereof. If you receive this message in error,
> please
> notify the sender immediately and delete all copies of this message ".
> ****************************************************************************
> ****************
> 
> 
> --
> 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>
> 
> --
> 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>
> 


-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

--
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