954,206 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

about java servlets

wat exactly servlets are?
how r they used in java?
wat r the real benefits by using java servlets?
give a detailed theory and example for servlets in simpler words.

phani.n
Newbie Poster
2 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

In simple words , the client requests that some action be performed and the server performs the action and responds to the client. This request-response model of communication is the foundation for the highest level views of networking in java i.e., serlets and Java Server Pages. Servlet extends the functionality of a server. :idea: understand

nanosani
Unauthenticated Liar
Team Colleague
1,830 posts since Jul 2004
Reputation Points: 45
Solved Threads: 56
 

Servlet is a program resides in server (web server like tomcat) and when ever a request comes from a client (web browser) servlet responds and sends back the response.
The live example is you have posted a question here and this web site has put your question on this page this nothing but a servlet is taking your request and putting it on the this page.

ok...
Bye

lvramaraju
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

I can only add this:
a JSP (Java Server Page) is compiled to a servlet the first time you run it ;-)

so they are all servlets (server extensions :-))

dakkar
Newbie Poster
14 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You