Of javascript and java interaction

Java = server side; Javascript = client side

I have long thought of how to make these 2 interact with each other (besides using forms, which is strictly one-way, not good).

Since I started delving into java web development, and started to know about javascript, I have been thinking how can I make them interact.

Then I learn about XmlHttpRequest in javascript, and it struct me, that's it :lol: but its only javascript2java interaction

Today, I think I have resolved it, and actually its simple, using jsp (maybe jstl), but I have yet to test this - if only I have the time - and make sure it works

java2js = JSP
js2java = xmlhttprequest

To be continued...

No comments: