Re: Best practices JDBC JSP

From: Daniel Rohe (daniel.rohe_at_stud.tu-ilmenau.de)
Date: 03/31/04


Date: Wed, 31 Mar 2004 16:58:03 +0200

Read pattern under following link:
http://java.sun.com/blueprints/patterns/DAO.html
http://java.sun.com/blueprints/patterns/TransferObject.html

hope that helps
Daniel

"mBird" <no@spam.com> schrieb im Newsbeitrag
news:0NAac.1656$Bp2.664@nwrdny02.gnilink.net...
> Thanks for the info.
> Could you give more details on what technologies you would use (so do you
> mean more complicated like using EJB or just simply like making beans to
> access the data that my jsp would then call). I could make EJB and so
that
> would really separate out middleware from presentation but the querying I
> need is so small (just look up data from one table and list it) that I did
> not know if I still should go that complicated).
> Also I want to just use TomCat and not an applications server.
> Thanks for any info.
> Mike Bird
>
> "Andree Große" <user@example.net> wrote in message
> news:c4e2rh$2it$1@ppd00021.deutschepost.de...
> > mBird wrote:
> >
> > > I query an Oracle 9i database and present on the web using TomCat and
> JSP. I
> > > am wondering if the way I do it (see code snip below) is the
> > > best/recommended way to do it or are there other/better recommended
> ways.
> >
> > Your source isn't good practice. Build a middleware tier and put
> > business logic into this layer. Use JSP only as presentation layer
> > and get the data from middleware.
> >
> > A.G.
>
>



Relevant Pages

  • Re: Best practices JDBC JSP
    ... > access the data that my jsp would then call). ... I could make EJB and so ... Build a middleware tier and put ... Use JSP only as presentation layer ...
    (comp.lang.java.databases)
  • Re: Best practices JDBC JSP
    ... mean more complicated like using EJB or just simply like making beans to ... access the data that my jsp would then call). ... Build a middleware tier and put ... Use JSP only as presentation layer ...
    (comp.lang.java.databases)
  • HttpSession gets generated again and again!! PLEASE HELP ME!!!!
    ... I'm working with JBoss and EJB 3.0. ... I have developed a petsore web application, with ejb 3.0 and jsp. ... I have some entities and session beans (one stateful for a cart and ...
    (comp.lang.java.programmer)
  • Re: Session Beans
    ... >>beans as an excercise in learning ejb. ... I use a jsp page as the client. ... has data members, they can be corrupted. ...
    (comp.lang.java.programmer)
  • Re: J2EE tutorial (Learn J2EE in 21 Days, Sams)
    ... Sebastien Degardin wrote: ... But, i think that the differences are in the specification such as (EJB, JSP, servlet). ...
    (comp.lang.java)