How to Use setProperty of JSP, jspsetproperty
How to Use setProperty of JSP
1. Introduction
<Jsp: setProperty> Function
Assign values to attributes of the instantiated javabean object in four forms.
Two or four forms
Three instances
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">
Iv. 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!