Reputation: 6474
I have a scenario where I have to invoke some functions using XML RPC. As my web app is on Google App Engine and the Apache XML RPC Library for Java is not fully supported by App Engine, I thought that I should store the login/access credentials with the help of java code, and then the javascript code should pick up those credentials (maybe as session variables??) and invoke the necessary calls and obtain data.
Is the above scenario doable? How do I share a variable, ideally as a session variable, between java and javascript code?
Upvotes: 0
Views: 419
Reputation: 7976
Yes this is possible!
I suggest to study this page carefully:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#methods-fields
And if you have any questions just create a new question with JSNI tag.
Upvotes: 1