Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: MVC and lost !


Message #1 by "Abhishek Malaviya" <amalaviya@u...> on Sun, 14 Apr 2002 22:38:09 +1000
Hi Abhishek,

       I will describe you a little how to use MVC for a simple Shopping 
Cart. For using MVC basically u need Servlets as Controllers, Java Beans 
as models and JSP for displayig.

  We can show all the items in a JSP page.
  Once user selects one items, request will goes to controller ie.servlet.
  We have to write all business methods in java beans only.
  Then servlet will call a bean method which can retrieve item details.
  In servlet, we will store all these items in session. 
  Then we will pass user again to products page using RequestDispatcher

Hopes you got the basic work flow of MVC

cheers
MHRAO
  

  Return to Index