Of course. - Your <bean:define is inside html and not the attributes of
another jsp tag...

-----Original Message-----
From: Wilson, Les J SI-FSIA [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 21:59
To: 'Struts Users Mailing List'
Subject: RE: Javascript & bean:message


We use this on the body tag of our pages and it works fine.

<body class="content" onload="setTopFrameText('<bean:message
key="page.accountDetail.subtitle"/>');">


Les

-----Original Message-----
From: Kris Schneider [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 13:54
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Javascript & bean:message


<bean:define id="buttonSearchMessage">
  <bean:message key="button.search"/>
</bean:define>

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

Quoting Andrew Hill <[EMAIL PROTECTED]>:

> 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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]]
> 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:[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]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to