Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need of Servlet  RSS feed

 
Raja ji
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please clear this confusion to me.
If i am using struts as framworks and JSP for rendring on pages, then what
is the need of Servelet in an application.

Thanks in advance.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be advised that we discourage the use of the honorific 'ji'.

Servlets act as the first point of contact for requests to the container, or atleast the first contact that can be used by developers. (Filters can now access requests before this, but they are designed for different purposes). Even JSPs and static content can be configured through Servlets.

So, even if you only had static content, the content would be served through a Servlet. Even if you only used JSPs, they would be accessed through a Servlet.

Likewise, Struts needs a 'bootstrap' servlet to hook it into the container so that the container can manage the requests to Struts. Even if you don't write the Servlet, they are still there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!