Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Servlets use as a Controller.?

 
suneel kanth
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,
"Why Servlets use as a Controller.?" This question asked in one of my interview,could any one help me to find the ans..Thank you in advance...
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To separate responsibilities. You allow the JSPs to be responsible for the presentation, the EJB's to model the data and business rules, and the servlets to control the interactions.
Thomas Paul wrote an article on Struts which uses the MVC pattern and discusses each responsibility.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!