1.what is the difference between cgi and servlet
Please note: comment moderation is enabled and may delay your comment. There is no need to resubmit your comment. Notify me of followup comments via e-mail. Written by : Ben Joan. User assumes all risk of use, damage, or injury. You agree that we have no liability for any damages. CGI can directly process scripts while it needs to be translated and compiled to before it can be run as a servlet Author Recent Posts.
Ben Joan. Latest posts by Ben Joan see all. Help us improve. Rate this post! Cancel Reply. J2EE Design Patterns. Java 6 new features. Java Accesscontrol table. Java Classloader Hierarchy. Java Code Coverage for Eclipse. Java Collections.
Java EE 6 Key Features. Java EE 7 Key Features. Java Fast track. Java Performance Tuning. Java Questionnaire. Java Resource. Java Thoughts. Java training videos. JavaScript frameworks.
JRE--java runtime environment. JSP Architecture. Kannada Evergreen songs. Kannada Radio. Key Interview Questions.
Last Min exam preparation tips. Latest Interview Qs and Link. Marker Interfaces. Modifier Elements Matrix in Java. Notes On Desing Pattern. Object Oriented Design. Object Oriented Programming. Oracle constraints. Pattern Types. Patterns vs Frameworks.
Persistence Framework. QA tools. Quick Read guide. Radio play list. Recommended best practice. SCEA -Whizlab-sample-test. SCEA mock exam questions. SCEA part 1 mock questions and Ans. Servlet Architecture. Session implementation. Soft Skills. Software Architecture. Software development process. Some Important java tips. Spiral model software development. Spring Configuration Files. On the other hand, the servlet is a web component which is generally written in Java and run in java virtual machine.
Programs employed using Java. Platform dependency Platform dependent Does not rely on the platform Creation of process Each client request creates its own process. Processes are created depending on the type of the client request. Conversion of the script Present in the form of executables native to the server OS. Compiled to Java Bytecode. Can resist attacks. Speed Slower Faster Processing of script Direct Before running the scripts it is translated and compiled. Portability Can not be ported Portable.
It resides in the server side and enables web browsers to interact with programs on the web server. For example, if a web page queries a database or a user is submitting the form information to the server at that time CGI scripts are invoked. The server passes that information on to an application in two ways GET or POST , then the application responds to the server back to the browser.
In this way, browsers get some results for the user. CGI is a stipulation, for describing a method to run CGI scripts and providing the results back to the server for those particular programs.
0コメント