[1.2.4] SECURITY #{secure.check ...

23 views
Skip to first unread message

mbulm1

unread,
Oct 18, 2012, 11:35:43 AM10/18/12
to play-fr...@googlegroups.com
hello,

can i exchange in this statement

 #{secure.check '1234'}

the string '1234' by a variable?

and how i do that?

thanks!

mbulm1

Marcel Klemenz

unread,
Oct 19, 2012, 2:47:15 AM10/19/12
to play-fr...@googlegroups.com
by replacing '1234' with myVar. Yes, it's that simple ;)

you need to create the variable first. Just put it into the renderargs, use #{set /} (carefully, can cause sideeffects) or use a groovy code block: %{ ....... }%
The renderargs should be the best solution.
Reply all
Reply to author
Forward
0 new messages