answersLogoWhite

0

CGI creates process for each client call where as servlet creates process for the first time and then uses thread for each client.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

Add your answer:

Earn +20 pts
Q: Differences between cgi and servlet
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

Difference between JSP and CGI programming?

JSP stands for JAVA SERVER PAGES, where as CGI stands for COMMON GATEWAY INTERFACE. In CGI, whenever a multiple requests of the same dynamic web page is made by the client to the server, a new process is cerated of the corrosponding CGI program, for each an every request generated as such.. this is not the case in JSP.. in JSP, when the first request is made for a dynamic web page..its corrosponding class file an hence the servlet is then cached in the memorey, and hence new threads are generated for the futher requests made, saving resources..


How do you give connection between HTML and java servlet?

You cannot. HTML is a static file and it cannot interact with a Java Servlet. A Servlet can always redirect to a HTML page but the other way round cannot happen.


Difference between HTTP servlet and Generic servlet?

The difference is that a GenericServlet has no defined protocol (it is "generic"), while HttpServler uses the HTTP protocol. HttpServlet is a subclass of GenericServlet with the purpose of creating a servlet for a web site.


Differniate between applet and servlet in java?

Applet: It is run on browser, i mean client side. Servlet: It is run on server, i mean server side.


What is javax servlet?

A Servlet is a Java programming language class used to extend the capabilities of a server. Although servlets can respond to any types of requests, they are commonly used to extend the applications hosted by web serversA Servlet is a Java-based server-side web technology.The javax.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container.