How do I split Java code away from a jsp page in NetBeans?
This question already has an answer here:
I think it will difficult to just get code on this site.
Nevertheless, I think since you were able to write all that code, changing to a modular form should be the easy part for you once you get to know about:
Servlets
Forwarding from Servlet to JSP
Try this link: https://danielniko.wordpress.com/2012/04/17/simple-crud-using-jsp-servlet-and-mysql/
That article has a link to github project, which has all the source you need.
链接地址: http://www.djcxy.com/p/76604.html上一篇: 在JSP中访问一个对象