This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes eval(scriptFile):  The script has a constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "eval(scriptFile):  The script has a constructor" Watch "eval(scriptFile):  The script has a constructor" New topic
Author

eval(scriptFile): The script has a constructor

Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
Does the eval in ScriptEngineManager allow the passing of arguements for script constructors?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

What scripting language do you intend to use? Can you give an example of what you mean by a "script constructor"?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
Ruby.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: eval(scriptFile): The script has a constructor
 
Similar Threads
DIV containing a script
Accessing javascript array inside a div.
Java Script in AJAX response
Why to use eval function inside Javascript
Execute JavaScript function present in HTML fragment loaded using AJAX