Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Name

Bean Shell Macro

Plugin

SCRP


Table of Contents
maxlevel3
minlevel2
typeflat
separatorpipe

Description

Excerpt

Java scripting using BeanShell

  • This is a newer implementation and replacement for the script macro
  • The script macro is retained for upward compatibility with existing source - it is exactly the same as beanshell
    • The beanshell implementation level has been updated with this release of the macro

Documentation

  • Help available in the notation guide.

Common parameters

...

Parameters

Pre-defined variables

Additional parameters

  • showJava - Default is false. Set to true to show a panel with the java source. Requires output=wiki.
  • strictJava - Default is false. Set to true to restrict what is considered valid source. This mode attempts to make BeanShell syntax behave as Java syntax, eliminating conveniences like loose variables, etc. When enabled, variables are required to be declared or initialized before use and method arguments are reqired to have types. This mode will become more strict in a future release when classes are interpreted and there is an alternative to scripting objects as method closures.See Pre-defined variables

Usage

No Format

{beanshell}
out.println("Hello world");
{beanshell}


No Format

{beanshell:output=wiki|script=#userByGroup.bsh|group=confluence-users}
{beanshell}


No Format

{beanshell:output=wiki|script=^userByGroup.bsh|showjavashowCode=true}
{beanshell}


No Format

{script:output=html|script=^myjava.java}
{script}

Other examples

Security

This macro supports CMSP.

Open Issues with this component

...