Execute Groovy from Java
setPropertyã—ãŸã‚ªãƒ–ジェクトã¯ã€Groovyã‹ã‚‰å®£è¨€æ¸ˆã¿ã®å¤‰æ•°ã¨ã—ã¦å‚ç…§ã§ãる。
Copy this code and paste it in your HTML
GroovyShell shell = new GroovyShell();
Script script
= shell.
parse(new File(SCRIPT_FILE
));script.setProperty("score1", score1);
script.setProperty("score2", score2);
Report this snippet
Comments
Subscribe to comments