This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The javax.servlet package provides only the service method which is not tied to a particular protocol. If you want to write a servlet that can respond to browser requests, use the javax.servlet.http package HttpServlet as a base.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Javaservlets run in the context of a web server, Sun calls it a "Servlet container" - so how you address them depends on the web server. FTP protocol is something entirely different and doesn't go through a web server AFAIK. With something like the Tomcat server you would send your browser to a URL http://yourserver/servlet/servletalias where the server maps servletalias to your servlet class.
Joined: Nov 22, 2008
Then, How can i call a protocol independent servlet without/with a browser. Thanks inadvance.