This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Basic doubt on sevlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Basic doubt on sevlets" Watch "Basic doubt on sevlets" New topic
Author

Basic doubt on sevlets

Vinod Chamoli
Greenhorn

Joined: Jun 09, 2003
Posts: 21
Could any one of u pls explain me like what is the difference between
Generic servlet and Http servlet?
Thanks inadvance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
U use sevice method o.k.My dout is how to call servlet from browser side.Can we use any proocol like ftp://www.servlet.com:21/servlet/...? Please clearify it.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Java servlets 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.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Then, How can i call a protocol independent servlet without/with a browser.
Thanks inadvance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic doubt on sevlets
 
Similar Threads
Capturing Form Data
javascript, servlets and SVG
Export in Excel
How can I change the sdk version of Websphere 4 if I already install it
Is there any way to get Servlet Init Parameter using EL?