<%--
 Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
--%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib"%>
<fmt:setBundle basename="LocalStrings"/>

<html>
  <head>
    <title><fmt:message key="jspattribute.jsp.title"/></title>
  </head>
  <body>
    <h1><fmt:message key="jspattribute.jsp.title"/></h1>
    <hr>
    <p><fmt:message key="jspattribute.jsp.overview"/></p>
    <br>
    <jsp:useBean id="foo" class="samples.webapps.simple.jsp2.examples.FooBean">
      <fmt:message key="jspattribute.jsp.beancreated"/>...<br>
      <jsp:setProperty name="foo" property="bar">
        <jsp:attribute name="value">
	  <my:helloWorld/>
        </jsp:attribute>
      </jsp:setProperty>
    </jsp:useBean>
    <br>
    Result: ${foo.bar}
  </body>
</html>