Hi!
yes,u can definitely access database from JSP page.
u can write the java code for accessing the database
inside a scriptlet or u can create a bean(a java file)
for the connections and initialise the bean inside the
JSP page using
<jsp:usebean />
u can print the output from the javabean on to the
output of the Jsp page.u can do this by making ur bean
getter method return and store the returned value in a
var.using <%= %> u can print that var.
--- "Robuschi (Delfi)" <[EMAIL PROTECTED]> wrote:
> 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
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
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