How do I split Java code away from a jsp page in NetBeans?

This question already has an answer here:

  • How to avoid Java code in JSP files? 28 answers

  • 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中访问一个对象

    下一篇: 如何将Java代码从NetBeans中的jsp页面分离出来?