Hi!
I want to display a set of employee details from database in a JSP Page.
Which method is best suited and "WHY"?
1. Establish directly connection from JSP and display records...
2. Divide into
Emp.jsp
Database Bean
form jsp create database bean which would fetch records form database.
Return directly the resultset to the JSP and display the records
3.Divide into
Emp.jsp
Database Bean
Employee object
form jsp create database bean which would fetch records form database.
from the no of records fetched create as many employee objects and fill the
details and send them as a vector to jsp which it would be type casted to
employee object not bean and then values are displayed from getmethods!!!
Please explain why and which method is good... WHY..
Thanks!
===========================================================================
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