| Author |
cannot display database
|
Jaypal Raj
Greenhorn
Joined: Jan 20, 2006
Posts: 3
|
|
i'm dealing with a jsp page where there are two combo box after selecting from them i ckick a button and get a page where i should display a database, i am doing all the business logic code in the bean class where i have used the prepared statement for accessing database. but i do not know what code should i write in my .jsp page to access that database from the bean class sachin sir if u r there than please chk it....
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56233
|
|
The bean should be written to expose a JSP-friendly API to the JSP page. If this API truly follows the JavaBean pattern, access from the JSP page, whether you are using the JSTL and EL or not, should be very straight-forward. [ January 20, 2006: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bimal Patel
Ranch Hand
Joined: Aug 29, 2003
Posts: 130
|
|
Hi Jaypal, So, you don't know how to access DB through JDBC or you want to call a function already written in a javabean to access DB?
|
Work Hard, Expect The Worst...<br /> <br />Bimal R. Patel<br />(SCJP 1.2, SCWCD 1.4)
|
 |
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
|
|
|
I think all you need is courtesy of Ben Souther.
|
 |
 |
|
|
subject: cannot display database
|
|
|