Hi everybody, I am chaitanya, I was going through Head first servlets and jsps, while going through MVC architecture I got a doubt how to implement it with this requirement.
I have a user details form which will take the user details along with his image, and submits it to the server.
My idea is, there is a jsp which will take the user details, submits it to a controller, then the controller will submit the user details to a model. the model will take care of rest of creating a record on the particular user. The image is not inserted in the database, it is stored in the server itself. Now should I write the code for reading the image in the controller or should I forward the request to another model and get it done.
Is my idea a correct one. if not Please suggest me some ideas.