Pass an array by ref to a Pb component from JSPTag(s): Jaguar/EAServer Jaguar/EAServer

You need to use the java class STRINGSEQHolder.

This classe is generated by Jaguar during stub generation for your package. It is located in [jaguar]\html\classes\yourPackage directory.

String [] javaArray;
STRINGSEQHolder PbArray = new STRINGSEQHolder();

try{ rc = myPbComponent.getData(PbArray); }
catch(Exception e){out.println(e.toString());}

// fetch the array returned by the component
javaArray =PbArray.value;

Thanks to F. Joyal




If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2012
[ home ]