Bill O'Keefe wrote:
> I have a question on using beans from JSP. According to
> my understanding, the <usebean:> tag can be used to
> access a normal bean, but one has to use the JNDI API
> to lookup a proxy to access an Enterprise JavaBean (ejb).
> Thus, one has to write a block of Java code in the JSP to
> get access to an ejb. Is this true, or does the <usebean:>
> tag also support ejbs, and if so, how? Thanks.
> -- Bill
JSP 1.1 is supposed to have more EJB support. However, the details are
sketchy.
To make sure we're starting with a clear understanding: EJB's have nothing to
do with regular JavaBeans (except that both happen to have the word 'bean' in
their names, which was probably a bad marketing choice). If you want your JSP
page to be an EJB client, then yes, you will have to follow the EJB client API
from within your jsp page. Which means that you will have to use JNDI to
locate your EJB. This has absolutely nothing to do with the way JavaBeans and
JSP works.
Since JSP and EJB's are both part of the J2EE (Java 2 Enterprise Edition),
they may provide more integration in JSP 1.1. But even if they make some
things invisible, I would guess that under the covers, JNDI and the rest of
the EJC client API would have to be followed.
cc
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".