<%-- 声明 TestBean --%>
<jsp:useBean id ="testbean"  class ="mytest.SetGetBean" />
<%-- 设置两个string的值 --%>
<jsp:setProperty name="testbean" property="string1" value="string1 value"/>
<jsp:setProperty name="testbean" property="string2" value="string2 value"/>
<%-- 读取string值 --%>
The value of string1 is: <jsp:getProperty name="testbean" property="string1"/>
<br>
The value of string2 is: <jsp:getProperty name="testbean" property="string2"/>
