• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New To JSP and servlets

 
hennie louw
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI I just want to know if you have an applet that communicates with a servlet , what do you need on your server to make it work, we have an apache web server, will it work on it or not?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can install the Tomcat servlet engine with Apache and it should work. Somewhere around Javaranch is some example code for transmitting a serialized object between applet and servlet.
Bill
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18100
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache doesn't process J2EE directly - you configure it to pass JSP and servlet requests to Tomcat (or whatever J2EE server you like). There's a Tomcat-Apache HOWTO at http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html. The simplest of the several ways to do is is via mod_jk and the ajp13 connector - for me, anyway.
The magic word to look for to get a client-side applet to talk to a server is "URLConnection".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic