Question about MVC

I have been working for the past couple of days on a project. I have been researching and studying different methods for developing my project. This project is a very simple order entry system. From my research I have discovered many new terms and concepts that have really got me confused. First of all my system will be running on an ISP that is providing a tomcat server. Jakarta-tomcat-4.1.30 java version "1.4.2_04". This is a public tomcat server opposed to a private server. Also this will have a MYSQL database. Although this may not be the correct form for some of the following questions I will post it to others.

The first concept that I have learned about is MVC which is a design pattern. My understanding is that I would create my order entry form in view. This view/form would call the controller which determines what must be done from the information entered into the form. The controller would then hand this information to the model. The model is used to insert the data into the database. The model also contains business logic.

Should I use this design pattern for a simple order entry system? This will always be a web application. Which design pattern should I use? Why wouldn抰 I just create a jsp form and then a servlet to insert the data into my table? Would this be a MVC 1?

Is an insert in the model servlet really business logic? What are other types of business logic?

If I should use MVC should I consider struts or another framework? Or is this making the project more complicated?

[1544 byte] By [zpyounga] at [2007-10-2 5:25:55]
# 1

The answer for all your questions would be:

Choose the best framework based on your Project requirement, hardware / software availability, complexity and timeline.

There is no hard and fast rule to use any pattern as such. You can use MVC for your Order entry system if you believe that the system might grow and scale in course of time.

You can use EJB as your Business Logic layer if you have a EJB Container bundled in your environment.

So choose what is appropriate and execute the project successfully within the time line.

Thanks and regards,

Pazhanikanthan. P

pazhanikanthana at 2007-7-16 1:27:43 > top of Java-index,Other Topics,Patterns & OO Design...