Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot display database

 
Jaypal Raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bimal Patel
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think all you need is courtesy of Ben Souther.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic