mpfserver Manual
 
 
 Java Servlets (Sun) | Interaction with Java Servlets (Server Side Applets)
There are several ways to interact with Java Servlets of Sun Microsystems.
passing parameters using GET-method
It is pretty easy to talk to a Java-(Http-)Servlet if it accepts parameters passed by GET-method. Of course you may use mpf:tokens to assemble parameters.
{mpf:include=http://servlet-url?usr={mpf:session/user/name}}
passing parameters using POST-method
If you must pass parameters to Java-(Http-)Servlet using POST-method, it becomes more complicated. A possible way is to embed a helper-page that posts parameters to Servlet.
<iframe src="post.htm"></iframe>
example: helper page (post.htm)
To pass parameters with helper page you can use input- and/or textarea-tags.
<html>
<body onload="document.helper.submit();">
<form name="helper"
  action="http://localhost:8080/default.htm"
  method="POST">
</input type="text" name="usr" value="{mpf:session/user/name}">
</form>
</body>
</html>
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).