Bruno Patricio wrote:
>
> Hi to all,
>
> I would like to know if there is a way to call a servlet without the need
> of performing an action (get or post). If anyone could help me, it would be
> great!
Sure, the servlet is meant to be used for any server side processing and a
servlet could be called through any defined protocol, if there is a servlet
engine written for that protocol. You could theoretically have a servlet running
in an ftp server, a gopher server, a mail server, a news server, etc.
On the practical side, though, I have never seen anyone mention any
implementation other than an HttpServlet, and all servlet engines I'm aware of
run in web servers. This means the underlying protocol is HTTP and as such,
HttpServlets respond to a defined set of HTTP protocol methods: GET, POST, HEAD,
PUT, TRACE, and OPTIONS. That is why almost all servlets will respond to GET or
POST by implementing doGet or doPost.
If you absolutely don't want to run your servlet inside a web server, then maybe
you need to rethink your architecture. Maybe you don't want a servlet, but a
server, listening on some port you define, responding to some protocol you
define.
K Mukhar
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html