1.Servlet简单登陆验证实例
https://blog.csdn.net/evankaka/article/details/45167773
2.点击jsp页面的按钮通过servlet跳转到另一个jsp页面
https://zhidao.baidu.com/question/402525117.html
Bug1:Intellij IDEA不能直接运行html来使用servlet服务,必须:
这样运行式部署tomcat,只打开项目下的index.jsp页面,才能让html使用servlet服务,如果不从这里通过运行项目,自动打开index.jsp的方法使用servlet,直接浏览器中打开html页面,点击链接使用servlet服务是不可以的,会出现错误:
如果你不想运行默认的index.jsp,想运行其它的jsp,就参照下面这个网址去改web.xml
https://blog.csdn.net/dd2016124/article/details/81236498
Bug2:
在Intellij IDEA里面,你的Servlet必须这样注册:
用的时候路径要这样写:
但在eclipse里,你可以这样简写:
注册:
使用: