範圍:
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" />