3

Where should mysql code go in terms of MVC? Obviously not the view.

jmj
  • 232,312
  • 42
  • 391
  • 431
Steve
  • 61
  • 1
  • 6

2 Answers2

6

It's not part of MVC. It should go in a DAO class which is (in)directly called by C.

See also:

Community
  • 1
  • 1
BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
4

It should be in one separate layer. which your service layer should be calling from Controller(Servlet)

Also See

jmj
  • 232,312
  • 42
  • 391
  • 431