I'm not a MVC expert, but I'm sure you'll have several Controllers.
Your item 1 looks like the Front Controller design pattern, try to
read about it.
We usually have a Controller to every Entity, redirecting to the
related views.

For example, if you have a Customer.class and a related CUSTOMERS
table in a database:

When you hit: http://localhost/appication/customers
(CustomerController mapped to /customers)
You can specify a default view for it (inside CustomerController) to
redirect to list.jsp.
You should also create other views to have a complete CRUD.


Got it?  :-)


On Sep 17, 9:24 am, Sonu S <sonu...@gmail.com> wrote:
> Hi all,
> I am trying to develop a sample project which is based on MVC. I want to
> implement MVC without use of Struts.
>
> Could you please help me regarding designing of application. I want to know
> how should i  implement it
>
> 1) should i create  a Controller Servlet and after submit on every jsp i
> should  redirect to that Controller Servlet and based on request coming from
> JSP i should redirect to corresponding Servlet.
>
> or 2) every servlet should work as controller and directly from JSP i should
> redirect to corresponding servlet.
>
> or 3) any other approach i should follow.....
>
> Thanks and regards
> Sonu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to