0

I know how to send data from the client java class (the entrypoint) in the GWT project but how do i send JSON object from handwritten javascript to GWT server side

1

1 Answer 1

0

If you know how to send data from the client java class (the entrypoint) in the GWT project then a better way is to use GWT JSNI

You can use GWT JSNI to call Java method from JavaScript and vice-verse.

You have to just export you Java method to JavaScript. Now in Java you have full control to do anything.


Find a sample code on Calling GWT Java function from JavaScript

Sign up to request clarification or add additional context in comments.

1 Comment

Is your issue resolved using JSNI? I hope now you have learned it that how to use JSNI export feature in GWT?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.