On Fri, 31 Mar 2000, Mike Cannon-Brookes wrote:

> If you're using taglibs, the best way is to use the library that comes with
> Orion called ejbtags.jar
> 
> Then within your jsp you do:
> 
> <%@ taglib uri="../ejbtags.jar" prefix="ejb" %>
> 
> <ejb:home id="myhome" type="com.ejb.myejbhome.class"
> location="java:comp/env/my/ejbs/location" />
> 
> Then within your page you can do things like <% myhome.create(blah); %>
> 
> Also useful when combined with the iterate tag from the util library.
> 
> <util:iterate id="mybean" type="com.ejb.myejbbean.class" collection="<%=
> myhome.findAll %>">
>       <%= mybean.getName() %>
> </util:iterate>
>

I had seen this, actually, but all I had seen was an example, and I wasn't
sure if this was ready for prime time, so to speak. Is this the preferred
way to access EJB of any kind from JSP? (I'll be adding a set of session
beans soon, I think, based on how many people commented that direct access
to entity beans wasn't a normal thing.) Is this documented anywhere? (Am 
I somehow accidentally volunteering to document it? ) Is it portable to
other app servers? 

-----------------------------------------------------------
Joseph B. Ottinger               [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo      HOMES.COM Developer


Reply via email to