Running javascript expression in java program



Hi all,

I wonder which area do i need to research on for this problem.

Right now i want to invoke some javascript function in the java
program.

For e.g.

String result = evalExpression(" "Hello World".toUpperCase() ");

public String evalExpression(String javascript){
evaluate the javascript string and return the result
}


Appreciate any advice

.



Relevant Pages

  • Re: Calling java within javascript
    ... the client side javascript function IS able to ... pass a constant as a parameter to the server side java. ... logical to me that javascript should have a means to pass a variable. ...
    (comp.lang.javascript)
  • Re: Return a NET array to javascript (IE)
    ... > I would like to return a .NET array of strings to Javascript, ... > public string[] MyArray ... and then use the Java Script iterator ...
    (microsoft.public.dotnet.framework.interop)
  • Re: adf java and
    ... That is not a Javascript function! ... What is adf? ... Do you mean Java or Javascript? ...
    (comp.lang.javascript)
  • Return a NET array to javascript (IE)
    ... I would like to return a .NET array of strings to Javascript, ... public string[] MyArray() ... var a = new VBArray); ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Calling C# COM object from JavaScript
    ... You should expose the class through COM interop and then pass that to ... You could use reflection to set the properties of the javascript object ... Now I'm passing a JavaScript object into the C# COM function. ... public string str1; ...
    (microsoft.public.dotnet.languages.csharp)