This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60800
    
  65

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot display database
 
Similar Threads
how to create common successful page
MVC Design
Iterating over Arraylist in jsf application
Open JSP page in new tab(browser) from request from servlet
Updating bean object through servlet