1.JSP执行过程(原理)
步骤1:翻译(jsp-->java)
步骤2:编译(java-->class文件)
步骤3:执行(执行class(字节码)文件)
2.JSP实战
步骤1:创建maven工程
步骤2:创建工程包entity,dao,util,service,servlet
步骤3:引入pom依赖
【引入mysql依赖,servlet依赖,jstl依赖】

步骤4:servlet/TsetServlet

Web.xml

步骤5:测试servlet

步骤6:数据库/表 创建

步骤7:创建实体类

步骤8:BaseDao
步骤9:StudentDao
步骤10:StudentDaoImpl
步骤11:StudentService
步骤12:StudentServiceImpl
步骤13-1:index.jsp

步骤13-2:测试访问

14-1 web.xml

14-2 StudentServlet

14-3 引入jstl表达式并修改jsp

步骤14-4 测试

步骤15:servlet调用service并测试


拓展1:


拓展2:




















