I’m working for this JAVA EE project for school. I almost finished but I realized that it’s demanded that we should use an MVC framework (spring or whatever)
What I’ve done so far is making a jsp page that sends the form data to a HttpServlet and then the servlet output the result.
How can I integrate a MVC framework without remaking the whole work, especially I’m close to deadline.
I’m working for this JAVA EE project for school. I almost finished but I
Share
If you have access to the SpringSource Tool Suite (STS) application then you can easily create a template Spring MVC project. It should then be a quick process to drop in the code you already have.
From the New Project drop-down select Spring Template Project, then choose Spring MVC project. It will include support for Maven so that all dependencies are resolved for you.
Place your servlet code into the generated
HomeControllerclass (you will need to make changes), and your JSP into the/src/main/webapp/WEB-INF/viewsfolder.Good luck!