-
Mvc
Hello,
I wish to insert, update and delete the database (postgresql / mysql / access) records using Servlet and JSP. I wish to implement the MVC framework along with this. Please help me to cope up the problem and show some small project with source code and relevant files.
Thanks & Regards.
-
I could provide some help
I'm into MVC very much these days.
I strongly recommend reading this book:
"JSP examples and best practices" by Andrew Patzer.
Why? Because it explains basic principles of MVC that every java web framwork uses
like Struts, JSF, etc.
Book is not big nor complicated, you will catch few patterns that are worth learning.
You will end up with your own small MVC framework and you will feel great about it :)
Most important thing is to learn how NOT to write code where its not meant to be,
and separate it in a way so you can extend it and maintain it easily,
and separate coder work from designers work so it does not hurt anyone.
If you want to learn it good, take your time and write it yourself
it's not so big deal, i have provide some help on your way
stay cool
-
Hi,
you can use any one java base MVC framwork , like Spring MVC, struts , JSF ect.
There are so many example available on the net.
Jsp and servlet base MVC are very easy:
Create file like:
1> Jsp (as V)
2> Servlet (as C)
3> Bean (as M -- like user and all)
4> Create any util class to connection for data base, and if possible write DAO class to get data from DB.
-
take a look at the Samples and Showcases which have the most Web Frameworks.
I think that helps you to understand how they work.