Hi
i want to access database in jsp page.
one way is to use Beans/Servlets and call the results from it.
Is it possible that we will write code in a jsp page directly .
That is will make database connection directly in jsp page then access and
display the results from query to page as we r soing in Coldfusion.
If any one can give any example code , it will  be highly appreciated.


Thanx in advance

Bye for now
Hamid Hassan





-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B. Ottinger
Sent: Tuesday, June 06, 2000 4:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Avoiding Java Code in the JSP Page.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 6 Jun 2000, Garcia, Cristina wrote:

> Hi gurus!
>
>  trying to avoid the Java code inside the JSP page, I thought about
writting
> getter methods in a Bean so that it returns a String containing HTML code
> together with values I had to calculate. What do you think about the idea?


- -----------------------------------------------------------
Joseph B. Ottinger               [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo      HOMES.COM Developer

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i

iQA/AwUBOTzieAhcVZKknQwGEQLutwCfd9Kgy0lGEwzWk6vmgo2/jqOqUTAAn0Eg
QcLFdGihjEixIMNwIC8fkXJJ
=4m+v
-----END PGP SIGNATURE-----

===========================================================================
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

Reply via email to