rohit wrote:
> This may seem to be a dumb question, but please someone tell me what MVC is.
> Thanks in advance.
"MVC" is an acronym for Model-View-Controller. It is a design pattern that has
been popular for many years in building GUI-based applications, and is also
useful when architecting web applications based on servlets and JSP pages.
The basic goal of MVC is to separate the following three concepts into their own
sets of objects, with maximum isolation between them:
* Model -- Objects representing the current state of your
system (typically JavaBeans or EJBs in a web app).
* View -- Objects representing the user interface of your
system (typically implemented in JSP pages or a
template system like WebMacro)
* Controller -- Objects that decide what to do next, based
on the occurrence of events (such as the submission of
a particular form). This is often implemented as a servlet
that uses the request URI to select a particular action
class that performs your business logic (which updates
the model), and then forwards control to the appropriate
JSP page (view component) to display the next part of
the user interface.
>
> Rohit.
Craig McClanahan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html