0 votes
1 view
in Java by (8.2k points)

I read many articles to understand java servlet but I did not succeed.

Can you please give brief introduction of java servlets (in easy language). Like what is servlet? What are the advantges? And all that.

I can't understand the difference between server-side programming languages (PHP, ASP) and servlets.

1 Answer

0 votes
by (41k points)

A servlet is solely a class which response to a distinct type of network request - most generally an HTTP request. Servlets are usually used to perform web applications - but various frameworks serve on top of servlets (e.g. Struts) to give a higher-level concept than the "here's an HTTP request, write to this HTTP reply" level which servlets provide.

Servlets run in a servlet container that controls the networking side (e.g. parsing an HTTP request, connection handling, etc). One of the best-known open-source servlet packages is Tomcat.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...