Java-CGI
You may talk to Java using "mpf:exec"-token to call Java-CGI program
{mpf:exec=E:/j2sdk1.4.0_03/bin/java -cp E:/ hello params}
Requirements

 | do not forget to put whitespace between commandline parameters |

 | do not use webserver aliases like %JAVA_HOME% |

 | set "-cp" (classpath) to folder that contains class |

 | token will return what you print to standard output with Java |
Java Output
System.out.println("myText");
JavaScript
You may create Java-Objects with JavaScript.
<script language="javascript">
var usr = new java.lang.String("{mpf:session/user/name}");
</script>
|