RE: [coldbox:7566] Re: JavaLoader Plugin and WURFL problems

Can you post the working version just for closure?

I’m glad to hear it’s working now.

Thanks!

~Brad

Sure…

var javaLoader = “”;

var libPath = ‘/system/plugins/WURFL-lib’;

var wurflFile = ExpandPath(libPath & ‘\wurfl.xml’);

var wurflObj = createObject(“java”,“java.io.File”).init(wurflFile);

super.init(arguments.controller);

javaLoader = getPlugin(“JavaLoader”);

javaLoader.appendPaths(ExpandPath(libPath));

javaLoader.create(“net.sourceforge.wurfl.core.CustomWURFLHolder”).init(wurflObj);

I am also going to submit this back to forgeBox, and maybe twist Luis’s arm to include it as a standard plugin. I can see great value for something like this in the framework.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Sure…

var javaLoader = “”;

var libPath = ‘/system/plugins/WURFL-lib’;

var wurflFile = ExpandPath(libPath & ‘\wurfl.xml’);

var wurflObj = createObject(“java”,“java.io.File”).init(wurflFile);

super.init(arguments.controller);

javaLoader = getPlugin(“JavaLoader”);

javaLoader.appendPaths(ExpandPath(libPath));

javaLoader.create(“net.sourceforge.wurfl.core.CustomWURFLHolder”).init(wurflObj);

I am also going to submit this back to forgeBox, and maybe twist Luis’s arm to include it as a standard plugin. I can see great value for something like this in the framework.

It is a mobile device detection system, in a nutshell.

Regards,

Andrew Scott

http://www.andyscott.id.au/