Forums Register Login

Basic doubt on sevlets

+Pie Number of slices to send: Send
Could any one of u pls explain me like what is the difference between
Generic servlet and Http servlet?
Thanks inadvance
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Then, How can i call a protocol independent servlet without/with a browser.
Thanks inadvance.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 815 times.
Similar Threads
Is there any way to get Servlet Init Parameter using EL?
javascript, servlets and SVG
Export in Excel
Capturing Form Data
How can I change the sdk version of Websphere 4 if I already install it
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:34:39.