Use of JSP cookies in login, jspcookie Login
Use of JSP cookies in Login
I. Functional Requirements
The user name and password can be memorized.
Code 2
1. login. jsp
<% @ Page language = "java" import = "java. util. *, java.net. * "contentType =" text/html; charset = UTF-8 "%> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN">
2. dologin. jsp
<% @ Page language = "java" import = "java. util. *, java.net. * "contentType =" text/html; charset = UTF-8 "%> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN">
3. users. jsp
<% @ Page language = "java" import = "java. util. *, java.net. * "contentType =" text/html; charset = UTF-8 "%> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN">
Test 3
If you have any questions, please leave a message or go to the community on this site for discussion. Thank you for reading this article. Thank you for your support!