...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
function myFunction(){ var params; var debugParameter = function(paramName) { try{ spooler_log.debug1(".. mail parameter ["+paramName+"]: "+params.value(paramName)); } catch (e){} //No error handling } try{ var myVariable = spooler_log.mail(); this.myObject = new Packages.sos.net.SOSMail(myVariable.smtp()); .... } catch(e){ throw "Error initializing myObject: "+e; } .... } |
For more information, see:
- https://helpx.adobe.com/experience-manager/kb/JavaFromEsp.html
- Importing Java Classes to ECMAScript with the import Statement
See also
- What Java scripting languages are supported?
- How to change over to Java 1.8 - the new Nashorn JavaScript engine
...