• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2sdk runs Servlets???

 
Leandro Oliveira
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the j2sdk has a tool for running servlets??? and how can I make a ServerSocket that would hear to a Internet Explorer or netscape request???
if I do:
ServerSocket socket=new ServerSocket(8080,100)
and than start the application, if I write in IE 127.0.0.1/pageX.html
I noticed that my socket can get a connection. But I could not get the requested URL, which was writen in the browser.Is there a solution???
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2SDK has the standard java.io and java.net classes - all you need to create sockets and open HttpConnections. However, if you want support for servlets, you need classes that are not in the standard libraries. The reference version of the servlet classes is provided by Tomcat. Downloadable from jakarta.apache.org and also part of the Sun's web services package downloadable from java.sun.com
Bill
 
Hafizur Rahman
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2SDK is onely the APIs to expose the publicly known methods/functionality of servlets,jsp, ejb etc. But for working you need an implemented version of these APIs. Tomcat , JBoss are some of the implementations.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic