Listing 6. viewblog.jsp

<HTML>
<Head><Title>Weblog</Title></Head>

<jsp:useBean id="blog" class="il.co.lerner.Weblog"/>

<Body>
<H1>Current Weblog contents</H1>

<table>
<jsp:getProperty name="blog" property="blog"/>
</table>

</Body>
</HTML>