----- Original Message -----
From: G.Nagarajan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 04, 2001 6:12 PM


> Manne,
> >re-use is much easier if the code is encapsulated in a good bean.
>
> I agree, just transferring code from a jsp page into a bean does not make
it
> re-usable. But, in the case of database handling, there is some code which
> is
> common like opening the connection, etc. What I do is to have a separate
> class which hides the details of connecting to the database etc. It also
> provides
> methods for adapting to different JDBC drivers (when using transactions,
> joins etc)
> and for adapting data values to the selected database.
>
> >But solution 3. still seems the best, although a simpler architecture
could
> >be ok if the app is very simple and the logic is not likely to be re-used
> in
> >later projects.
> if one is learning jsp then it is ok.
>
> regards,
> Nagaraj.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to