Example & Tutorial understanding programming in easy ways.

What's the architecture of a Servlet?

Servlet architecture includes:

a) Servlet Interface
To write a servlet we need to implement Servlet interface.
Servlet interface can be implemented directly or indirectly by extending GenericServlet or HttpServlet class.

b)Servlet  methods
3 methods defined in Servlet interface:

init()
service()
destroy().

Read More →