<%@ page import="ejbdemo.*" %>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/ejbtaglib.tld" prefix="ejb" %>
<html> 
<head> <title>Use EJB from JSP</title> </head>
<body>

<ejb:useHome id="home" type="ejbdemo.DemoSessionHome" location="java:comp/env/ejb/DemoSession" />
<ejb:useBean id="demo" type="ejbdemo.DemoSession" scope="session" >
	<ejb:createBean instance="<%=home.create()%>" />
</ejb:useBean>
<heading2>      Enterprise Java Bean:  </heading2>  
	<p><b> My name is "<%=demo.getName()%>". </b></p>
</body> </html>
