Hi Roland,

JSTL tags inside Stripes tags aren't evaluated, try this:

<c:set var="myKey" scope="page"><fmt:message key="MY_KEY" /></c:set>
<s:submit onclick="return checkDelete('${pageScope.myKey}');" />

Cheers,
Samuel

On Sat, Apr 5, 2008 at 12:53 PM, Roland Bali <[EMAIL PROTECTED]> wrote:

> Hi,
>
> When a button is clicked I would like to call a JS method that takes a
> message
> parameter that is to be localized.
>
>    <s:submit onclick="return checkDelete('Hello World!');" />
>
> What I would like to do is something like this, but this doesn't work:
>
>    <s:submit onclick="return checkDelete('<fmt:message key="MY_KEY"/>');"
> />
>
> What is best practice for doing things like this?
>
> /Roland
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>



-- 
Samuel Santos
http://samaxes.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to