Differences between form submission get and post in JSP and examples of jspget
Detailed descriptions and examples of JSP form submission get and post
What is the difference between get and post?
Ii. Practice (post submission)
1. login. jsp
<% @ Page language = "java" import = "java. util. * "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. * "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">
Three running results
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!