returnjavabean.lzx
<canvas width="700" height="500" debug="true">
<debug x="170" y="20" width="500" height="400"/>
<security>
<allow>
<pattern>^examples.ReturnJavaBeanExample</pattern>
</allow>
</security>
<javarpc name="returnjavabean" scope="none" objectreturntype="javabean" remoteclassname="examples.ReturnJavaBeanExample">
<handler name="onload">
Debug.write('proxy:');
Debug.inspect(this.proxy);
</handler>
<remotecall funcname="getJavaBean">
<param value="'laszlo'"/>
<param value="'san francisco'"/>
<param value="'ca'"/>
<param value="'this is a secret (do not return value)'"/>
<handler name="ondata" args="bean">
Debug.write('------------------------------');
Debug.write('got bean object (secret is not returned):');
Debug.inspect(bean);
</handler>
</remotecall>
</javarpc>
<button x="10" y="10" onclick="returnjavabean.getJavaBean.invoke()" text="get java bean object"/>
</canvas>
Cross References
Named Instances