3

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

jmj
  • 237,923
  • 42
  • 401
  • 438
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,082,665
  • 372
  • 3,610
  • 3,555
4

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

Also See

jmj
  • 237,923
  • 42
  • 401
  • 438