GeeCON Prague 2014*
The moose likes JSP and the fly likes cannot display database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "cannot display database" Watch "cannot display database" New topic
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: 61310
    
  66

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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.
 
GeeCON Prague 2014
 
subject: cannot display database