Listing 2. use-simple.jsp

<HTML>
<Head><Title>Using SimpleBean</Title></Head>

<jsp:useBean id="simple"
 class="il.co.lerner.SimpleBean"/>

<Body>
<H1>Using SimpleBean</H1>

<P>Original value: <jsp:getProperty name="simple"
 property="userID"/></P>

<jsp:setProperty name="simple"
property="userID"
 value="300"/>

<P>New value:<jsp:getProperty name="simple"
 property="userID"/></P>

</Body>
</HTML>