answersLogoWhite

0

What are java servelets?

Updated: 10/27/2022
User Avatar

Wiki User

15y ago

Best Answer

When the internet/web was young... there was the webserver. But it didn't do much except fulfill requests for files. Mostly images and .html documents, and such.

However, someone noticed that a C program has stdin, stdout and stderr streams... So they made a file extension called .cgi (Common Gateway Interface) and told the webserver that when a request was made to this .cgi file... that it shouldn't SEND a .cgi file to the requestor... instead it should RUN the file as a program, get the program's output and sent THAT output to the browser.

Thus web apps were born.

Browser Request -> Webserver -> Stdin -> C program... ->>>

Stdout -> Webserver -> Response to user's browser.

Sun Microsystems wanted to use java for web apps. So, they made tiny classes called "Servlets" (mini-Server programs) to run instead of the C programs/Perl programs everyone else was using.

Servlets work like:

Browser Request -> Webserver -> Java -> Stdin -> java Servlet Class.. ->>>

Stdout -> Webserver -> Response to user's browser.

That's pretty much is. A Java Servlet is a program that accepts data, does some processing and then spits out results that a webbrowser would understand.

Hope this answers your question.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are java servelets?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is java is so popular?

java is a machineindependent programming language. It is simple. Only java supports applets and servelets . It is completely object oriented and highly secure . It contains threads that can programing easily.


How you view the data in HTML format using servelets?

Servlets need to return something like a HTML or JSP page. They do the computation and based on the result give us the desired page.


What Indonesian island is Jakarta on?

java


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


Why CGI is still used over servlets?

CGI is an outdated technology. Servelets are much more efficient and powerful when compared to the CGI technology. Hence, Servlets are more commonly used than CGI.


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


Small Java-based programs are called?

Java applets


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


What do you call java and javascript?

Well you get java as java and javascript as iava.


Supermost package of java?

The supermost package of Java is the "java" package.


What country is known for its java coffee in the Java sea?

Java coffee is made in Java, which is an island - part of INDONESIA