yes all three can be done , except for the last one , instead of printing
values in the
bean, get it to store them in an array and retrn the array to the JSP page
then print the values in the JSP. THis will ensure the dynamicity of the
bean
It can then be adapted to other pages as well
Regards
Sanjay
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Robuschi (Delfi)
Sent: 18 September 2000 13:27
To: [EMAIL PROTECTED]
Subject: Database access in JSP...
Importance: High
Hello... I'm Roberto from Italy.
I'm studying JSP and JavaBeans and I have some questions:
1) Can I access a database from a JSP page???
2) Can a Javabean return a ResultSet so the JSP page can print alle the
records in the Resultset???
3) Can a Javabean (called by a JSP page) print some lines in the output of
the JSP page???
Thank to everybody!!!!!!!!!
Robuschi Roberto -------------------- Delfi srl
P.za Ravenet 1/b - 43100 PARMA
Tel. 0521/932411 Fax 0521/989045
[EMAIL PROTECTED] --- http://www.delfi.it
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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".
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