Difference between servlets and struts

what is the difference between servlets and struts?
[58 byte] By [sandipan_16a] at [2007-11-26 17:29:17]
# 1

Bone up on MVC first (the model-view-controller design pattern). A Servlet is a controller. Struts has its own Servlet and builds on standard functionality to also provide view (as well as controller) functionality. These are typically called 'web application frameworks'. Other examples include Tapestry and JSF. Generally, you will 'route' requests via XML files or annotations in these frameworks. They will also provide 'binding' from Java objects to your JSP's. You can always implement all of the above yourself (via Servlets and JSP's), but why re-invent the wheel?

- Saish

Saisha at 2007-7-8 23:57:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...