Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Servlets use as a Controller.?  RSS feed

 
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!