I really liked how you explained it first with the colors to get the main point across, then labeled each part MVC, then got into the specific names like JSP, Servlet. Made it much easier to understand, thank you!!
I have two questions 1- does implementing different programming languages requires different architecture pattern or does it does not rely on it? 2- for my final year project, I am building a web-based application which online course platform where users can enroll in courses by paying the required price the project will be built in following technologies front end : HTML CSS JAVASCRIPT back end: Php database: MySQL my question is which architecture design is suited for my web-based application?
In MVC pattern, I understand that always Controller is the middle man. So when a view is returned it is returned to the Controller BUT not directly to the client. Please clarify or correct the diagram.
The client sends a request e.g., a GET request to the Web Server. The Web Server passes this request to a DispatcherServlet. Think of DispatcherServlet as a front Controller (think of it like a Primary Controller). The DispatcherServlet finds the appropriate handler method defined in Controller that you as a developer has written. In the Controller method, the Model class will be called. The Model class has the Business logic to read / write data from / to database, apply transformation on data etc. The Model class will hold the data that needs to be rendered in the view. The Controller method will have a reference to the View that should be rendered when the execution finishes. When the controller method finishes executing, it returns a result (to the Web Server) which typically includes a reference to the view (such as a view name or a View object) and the model data to be displayed in the view. The Web Server then uses this information, renders the view (uses the view and model to generate an HTML page) and then it sends the rendered view back to the client as the body of the HTTP response.
How can the Client send a request to the Controller without a view at the first place? They have to interact with an interface (a view) and then that view triggers the Controller, tells the Controller what the client want to read from the database, right? 🤨 🤔🤔....
User uses the browser to send the request to the server. Controller takes the request through Request Parameter and sends that request to the Model. AND model is the ones that deals with the database so it takes the request from the controller and communicates with the database and queries according the the request and sends the data back to controller. BUT the data that is sent to the controller is raw data which is not formatted so it sends the raw data to the VIEW which is responsible for formatting the data OR generating UI (HTML CSS) using the data. After formatting it sends the formatted data to the client which is the browser. This is what i learned from the video. You may already know this concept as this comment was posted 5 months ago.
@@pawanshrestha3823 Actually the Answer to my question is : User does not interact with the controller but it interact with the view (ex. HTML Page) and from the View the user makes a request to server. At server the Controller (ex. A Servlet, or RestController in Spring Boot) takes that request and send it a MODEL (ex. Java classes and api) ....
It should be sent back to the controller. Whatever method is created to display that formatted information from the view back to the client would be stored in the controller. So it shouldn't skip to the client at all. The chef (the view) doesn't bring your meal directly to you, but the the waiter should (controller).
I really liked how you explained it first with the colors to get the main point across, then labeled each part MVC, then got into the specific names like JSP, Servlet. Made it much easier to understand, thank you!!
Thank you :)
This explanation is simple yet so effective. Thanks a lot!
At 4:20 you are directly sending the view arrow to the client. I think it should go through the controller, which is responsible for the response.
This is what i was also thinking, because i have watched some videos about MVC and view send data to controller and controller send data to client
That's not correct
View will directly send response to client
@@beast0726 since controller is servlet filter so reqest and response go through it
This is one of the best ways of explanation.
Thank you, dude.
Very easy to understand for beginners in MVC. Thanks a lot for the simplest explanation.
This explanation is simple yet so effective. Thanks a lot Sir!
I appreciate this video as you provide real world examples. Thank you.
Thanks, you've made the MVC concept easy to understand.
Awesome Man, I hope you have such videos on other important concepts
Awesome video! I love how you explain first without using names, it makes it so easy to understand. Thanks 🙏
It's very cool & Amazing 👍
within 5 minutes we cover this topic.
thankyou so much so grateful teaching
No words of ur best explanation. Easy understanding
Thank you so much :)
Life saving video,best video ever, loads of ❤️ form PICT ,Pune
Explained in the simplest way possible, thank you my friend
Great tutorial Abhay. Could u plz come up with MVP and MVVM designs paterns too?
Thanks. I will try to make it :)
@@abhayredkaracademy but you didn't. So sad
This is explained really well. Thank you.
Today my teacher explained but I was stuck. thanks for easy explanation.
I was need this types of explanation that I got. ❤ Thanks brother.
great explanation using colored boxes! Thank you very muchh!
what a fantastic way to teach...!!!!...keep it up bro
I have two questions
1- does implementing different programming languages requires different architecture pattern or does it does not rely on it?
2- for my final year project, I am building a web-based application which online course platform where users can enroll in courses by paying the required price the project will be built in following technologies
front end : HTML CSS JAVASCRIPT
back end: Php
database: MySQL
my question is which architecture design is suited for my web-based application?
Thanks For the excellent explanation Sir !🎉
thank you so much...best video on topic,you are very good teacher.the way you explain is fantastic.keep it up.
Thanks for the comment :)
I really loved it liked u explained very clearly super bro awesome keep it up bro expecting more. Videos from u bri
wow, nice explanation. Now I understand MVC...
Thank you :)
Congratulations! You gained a new subscriber 😊
Thank you very much sir it helps me alot for my today's exam❤
It was easy to understand, thanks to the tutorial.
Thnq sir....ur way of teaching very very good ❤
Very easy to understand! Thank you!
extremely clear explanation. Thank you
Great job, THANKS, super explained!
wow ...very good explanation...great help in understanding the MVC architecture pattern
Best explanation till date may Allah bless you
Explained very clearly, Thank you
Very clear explanation...!!! Thanks a lot❤
Best explained 👍
So easy explained for Buisness analyst 😄
Explanation was superb
it's outstanding bro
Great tutorial... Really learnt a lot from this
Thank you :)
Nice explanation
I am very stifcation you vidio sir thanks for watching this vidio
Thank you for your video about MVC :)
Excellent explanation. Thanks!
Best explanation sir....
What a beautiful explanation
Loved the explanation 🙌🙌
Thank you so much
very good explanation!
sir please make video on client server architecture
excellent tutorial
crystal clear explaination
Great explanation 🎉
Ultimate sir ji
Very nice understanding
In MVC pattern, I understand that always Controller is the middle man. So when a view is returned it is returned to the Controller BUT not directly to the client. Please clarify or correct the diagram.
The client sends a request e.g., a GET request to the Web Server. The Web Server passes this request to a DispatcherServlet. Think of DispatcherServlet as a front Controller (think of it like a Primary Controller). The DispatcherServlet finds the appropriate handler method defined in Controller that you as a developer has written. In the Controller method, the Model class will be called. The Model class has the Business logic to read / write data from / to database, apply transformation on data etc. The Model class will hold the data that needs to be rendered in the view. The Controller method will have a reference to the View that should be rendered when the execution finishes. When the controller method finishes executing, it returns a result (to the Web Server) which typically includes a reference to the view (such as a view name or a View object) and the model data to be displayed in the view. The Web Server then uses this information, renders the view (uses the view and model to generate an HTML page) and then it sends the rendered view back to the client as the body of the HTTP response.
Very well explained ✌️👍
Nice simple and straight. Great !! Pls come up with more videos on MVP designs
Superb tutorial 🙏🏻 thanks
appreciate brother its still working
You earned a like and subscribe.Very good explanation
Awesome explanation
kamal ka smjaya sir
👏💯
Just to the point. Thanks.
Nice explained!!
Well explanation.... Superbbb❤️
Nice explanation tan q
Neatly explained!
How can the Client send a request to the Controller without a view at the first place?
They have to interact with an interface (a view) and then that view triggers the Controller,
tells the Controller what the client want to read from the database, right? 🤨
🤔🤔....
really helpful brother....thankyou....
Thank you :)
Wow I like your explanation
In oose also ths MVC topic they can I write ths
Nice explanation 👌
Amazing video
sweet simple on spot ❤
nicely done
Great tutorial. Explanation 👌
Awesome brother
NO COMPLICATION.......quick understanding of MVC..KIP IT UP :)
Thank you so much :)
very very nice explain
Nicely explained 👌 👏
Thank you sir , its very helpful.
thanks bro it's really help
But the user will interact with a view (UI), how a user can interact with controller because it is just a code (as you said it is servlet) ?
User uses the browser to send the request to the server. Controller takes the request through Request Parameter and sends that request to the Model. AND model is the ones that deals with the database so it takes the request from the controller and communicates with the database and queries according the the request and sends the data back to controller. BUT the data that is sent to the controller is raw data which is not formatted so it sends the raw data to the VIEW which is responsible for formatting the data OR generating UI (HTML CSS) using the data. After formatting it sends the formatted data to the client which is the browser.
This is what i learned from the video. You may already know this concept as this comment was posted 5 months ago.
@@pawanshrestha3823 Actually the Answer to my question is : User does not interact with the controller but it interact with the view (ex. HTML Page) and from the View the user makes a request to server. At server the Controller (ex. A Servlet, or RestController in Spring Boot) takes that request and send it a MODEL (ex. Java classes and api) ....
Advantages of using MVC
Modularity
Reusability
Testability
Scalability
Collaboration
Great explenation! Many thanks!!!
You're the best
very well explained my concept clear of mvc than you....
Helpful tq
Thank you so much this video helped me so much ❤️
Is the rendered result directly sent to the client from the View or is it sent to the client through the controller?
It should be sent back to the controller. Whatever method is created to display that formatted information from the view back to the client would be stored in the controller. So it shouldn't skip to the client at all. The chef (the view) doesn't bring your meal directly to you, but the the waiter should (controller).
Thank you very much sir you are awsome
Great explaination
Thank you, very helpful.
Little bit confused in starting of the video u told blue color is view
Bro excellent very good great bro
Well Explained!_✨
awesome explantaion
Thanks a lot..🙂✨