Click to See Complete Forum and Search --> : can javascript work with java JSP?


ken2010
08-05-2010, 12:01 PM
please help me with the source code of how javascript and JSP connects

Khalid Ali
08-06-2010, 05:06 PM
Simple just keep in mind the following
JavaScript (and html, css etc) are client side languages.
JSP (and asp, php etc) are Server side languages.

This means they have completely different domains. THE ONLY way there could be a communication between client and a server is via some type of communication protocol. In this(JavaScript) case this protocol is http, and http uses a request/response format.
Meaning you will have to send a (Post or get) request to server and server will respond back to you.