作用域:
page;<jsp:useBean id="Bean-name" class="class-name" scope="page"> </jsp:useBean>
request;<jsp:useBean id="Bean-name" class="class-name" scope="request"> </jsp:useBean>
session;<jsp:useBean id="Bean-name" class="class-name" scope="session"> </jsp:useBean>
application;<jsp:useBean id="Bean-name" class="class-name" scope="application"> </jsp:useBean>
获取和设置属性:setProperty、getProperty
setProperty;<jsp:setProperty name="bean name" property="property name" value="str" />
setProperty;<jsp:setProperty name="bean name" property="property name" value=<%=expression%> />
setProperty;<jsp:setProperty name="bean name" property="*" />
setProperty;<jsp:setProperty name="beans name" property="property name" param="param name">
--------------------------------------------------------------------------------------------------------------------------
getProperty;<jsp:getProperty name="bean Instance name" property="property name" />