Java School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a Java Expert!

Join 300,481 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,768 people online right now. Registration is fast and FREE... Join Now!




common connection in JSP

 

common connection in JSP

n.srinivasarao86

24 Dec, 2008 - 04:24 AM
Post #1

New D.I.C Head
*

Joined: 24 Dec, 2008
Posts: 4

Hello Sir/Madam,

I am doing a project in JSP. My Project Manager told me .."Don't write any connection to dbase in your JSP page. write all the connections to the dbase in a class and call that particular class where ever you want. I have used beans concept. But that is not working. Is there any other way to connect to the dbase from all JSP pages through a single class...I have to use only JSP only. Hibernate will not work.......

Pls... help me with an example..
I am waiting for your reply...

Thanks in advance...... rolleyes.gif

User is offlineProfile CardPM
+Quote Post


jjsaw5

RE: Common Connection In JSP

24 Dec, 2008 - 05:07 AM
Post #2

I must break you
Group Icon

Joined: 4 Jan, 2008
Posts: 2,656



Thanked: 25 times
Dream Kudos: 125
My Contributions
Can you please post your code and any error you are receiving so we can take a look at it and get a better understanding of what you are trying to do.
User is offlineProfile CardPM
+Quote Post

janotte

RE: Common Connection In JSP

27 Dec, 2008 - 03:09 AM
Post #3

code > sword
Group Icon

Joined: 28 Sep, 2006
Posts: 2,157



Thanked: 152 times
Expert In: C/C++

My Contributions
I'm 90% sure your "Project Manager" is actually your teacher.
Am I right?

Regardless, go have a look at this link and see if it gives you the ideas you need to do your project / homework.
http://www.java2s.com/Code/Java/JSP/Obtain...eConnection.htm

Your 'career' is going to be a short and unhappy one if you don't rapidly master finding information on the internet instead of relying on the kindness of strangers in forums like this one.

This post has been edited by janotte: 27 Dec, 2008 - 03:13 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 03:53AM

Live Java Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month