invoking servlet?

What is meant by invoking a servlet and How to invoke servlet?
Veena85Asked:
Who is Participating?
 
fvictorConnect With a Mentor Commented:
Invoking a servlet is nothing but calling the servlet. Inorder to incoke a servlet one has to include in the html file the reference to the servlet you are calling. eg. the POST operation of a submit button referencing a particular servlet.
0
 
GaryJohnsonCommented:
A servlet is the server side equivalent of an applet and can be used in place of a CGI script. Servlets can be invoked via the <SERVLET> HTML tag....Gary
0
 
heyhey_Commented:
servlet is not exactly 'the server side equivalent of an applet'

servlet is Web server extension (just like CGI). when you make HTTP request to  the servlet URL, your web server will create new servlet object and return the page generated from this (servlet) object.
0
 
marnicCommented:
invoking a servlet means send a request to it. (usualy http request)

you can invoke a servlet by typing it's URL in the address bar of a browser or by clicking on a link that points to the servlet (href="servletURL"). The servlet runs on a server and the server must be configured to properly redirect some request to the servlet.

a servlet URL may look like :
http://www.dom.com/p1/p2/info-info

all URLs starting with http://www.dom.com/p1/ may call the same servlet. p2/info-info is additional info ignored by the server but usefull for the servlet.


0
All Courses

From novice to tech pro — start learning today.