Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: JavaScript Calling Servlets


Message #1 by "Jan" <jan@i...> on Wed, 16 Aug 2000 16:8:28
Jan,

As normal as you would load url e.g.
http://mydomain.com:8080/servlet/myServlet if using post method. if using
get you would simple append this to the end ?id=123&name="jan" etc.

You can return value to jsp if you use jsp to load the applet. remember
servlet is server-side programming, whatever you see if what happen at the
client-side. Servlet cannot initite communication, it wait for the client
side to request first and it will response. Therefore to open a window and
execute would be client side, if you work with servlet the use jsp to open
windows or even javascript and call the servlet to return the request.

Hope this help.

Van

----- Original Message -----
From: "Jan" <jan@i...>
To: "Java Server" <pro_java_server@p...>
Sent: Wednesday, August 16, 2000 4:00 PM
Subject: JavaScript Calling Servlets


> How do I have JavaScript Call a Servlet?  Also, can I return a value to
the
> JS?  One last thing, Can my Servlet open a New browser window and write to
> that?
>
> Thanks in advance

  Return to Index