• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Need of Servlet

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic