servlet and cgi in whch each object is created for each request
where as it is not same as for servlet
2006-09-21 00:21:40
·
answer #1
·
answered by ch_nagarajind 3
·
0⤊
0⤋
The biggest difference between CGI and servlets is performance. There is a single Java Virtual Machine running on the server, and the servlet is loaded once when it is called. It is not loaded again until the servlet changes, and a modified servlet can be reloaded without restarting the server or application.
By using servlets, the developer doesn't have to worry about the inner-workings of the server. Form data, server headers, cookies, etc., are all handled for you by the servlet's underlying classes. Additionally, because servlets are written in Java, you can move them from one system to another for deployment and not worry about the OS or the type of server. This advances Java's whole notion of "write once, run anywhere."
2006-09-21 00:37:10
·
answer #2
·
answered by vimal M 1
·
0⤊
0⤋
perl is a scripting (programming) language. It is mainly found on unix/linux systems but you can get it for windows as well. CGI common gateway interface is a way for a web server to execute programs/scripts on the server from url requests. A lot of CGI routines are written in perl but they can be written in any language which can be run (compiled and run) on the server. CGI provides ways for the program to retrieve POST and GET data from the request and has full access to the server for saving data or responding to the request with some HTML or other code. An example would be a post message comes in from a user and the data is saved to a file, an email is sent and a response page is sent back. javascript is a programming language which is included in the HTML sent to a browser. The browser then interprets and executes the code. This allows interactive web pages to be created containing things like drop down menus and animation.
2016-03-27 00:10:52
·
answer #3
·
answered by Anonymous
·
0⤊
0⤋
naga put some cloths on and now here is your link
http://www.google.co.uk/search?hl=en&q=difference+between+servlet+and+cgi+written+in+java&btnG=Search&meta=cr%3DcountryUK%7CcountryGB
2006-09-21 00:20:07
·
answer #4
·
answered by Joe_Young 6
·
0⤊
0⤋