Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2012, 06:38 AM
bigwheels16 bigwheels16 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Default pass java objects to script when using QuercusEngine

Code:
QuercusEngine engine = new QuercusEngine();
Value value = engine.execute("<?php return $obj->name; ?>");
System.out.println(value);
I have code like this and it appears to run, but the problem is I would like the $obj in the script to be an actual java object instance that is already created, but I can't figure out how to pass parameters to the script.

Something like this:
Code:
engine.setParam("obj", new Object());
How can I do this?
Reply With Quote
  #2  
Old 03-15-2012, 01:19 AM
bigwheels16 bigwheels16 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Default

I figured out how to do this. See: http://stackoverflow.com/questions/9...712709#9712709
Reply With Quote
Reply

Tags
cli, instance, quercusengine

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.