On Wed, 21 Jun 2000, Robert Nicholson wrote:

> Good question...
>
> Where do you plan to get the home interfaces for your EJBs?
>
> Presumably in your servlets layer?
>
> I think you can put the remote interfaces to your session and entity beans
> the request as request attributes.

Yes I will be using the home interface in the servlet to
create the entity EJB.

Ok, I can access the EJB remote interface from the servlet and
put the data in the request object as key value pairs that
will be forwarded to the JSP. But what if the result set contains
n number of rows? How should this be passed to the JSP?

thanks,
Khurram


>
> > -----Original Message-----
> > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Khurram Saqlain
> > Sent: Wednesday, June 21, 2000 1:53 AM
> > To: [EMAIL PROTECTED]
> > Subject: application design
> >
> >
> > I'm designing our application which looks like:
> >
> > JSP/HTML          (presentation layer)
> > -----------
> > Servlets          (Application layer)
> > ----------
> > EJB               (DB Layer)
> >
> >
> > My question, how should I pass data retrieved from the database
> > as a EJB to the JSP layer? I could pass the EJB to the presentation
> > layer but is there a another alternative?
> >
> > Is passing an EJB to the presentation layer a good approach
> > when the result set contains a large number of rows?
> >
> > TIA,
> > Khurram
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to