JSP开发之生成图片验证码技术的详解(2)

<servlet> <servlet-name>ajsp</servlet-name> <!-- 配置servlet用servlet-class, 配置jsp页面用jsp-file标签 --> <jsp-file>/WEB-INF/jsps/a.jsp</jsp-file> </servlet> <servlet> <servlet-name>CodeImgServlet</servlet-name> <servlet-class>cn.hncu.servlets.CodeImgServlet</servlet-class> </servlet> <servlet> <servlet-name>LoginServlet</servlet-name> <servlet-class>cn.hncu.servlets.LoginServlet</servlet-class> </servlet> <!-- 给servlet配置访问路径 --> <servlet-mapping> <servlet-name>ajsp</servlet-name> <url-pattern>/x/a.asp</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>CodeImgServlet</servlet-name> <url-pattern>/code</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>LoginServlet</servlet-name> <url-pattern>/LoginServlet</url-pattern> </servlet-mapping>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wzjzxz.html