Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection Pool in JSP

 
R SundaraPandian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I would like to know how to create connection pool in JSP.
Heard we can use USEBEAN tag.Somebody said
we have to import some packages called
com.sun.server.*;
com.sun.server.http.*;
I couldn't able to find these packages in Sun site.Could any one of us,help me ?Is there any tutorial sites ? If so please let me know.

Could you please help me asap.Because I need it urgently.
Awaiting,
Sundara Pandian R
------------------

------------------
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
write a bean class in java.write seperate functions for setting a connection,getting a connection,etc.In jsp using <jsp:usebean id="something" class="something">u can call the functions.hope u got me.try it out.
Preethi
 
R SundaraPandian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Ofcourse that is true and working fine.See,if I want to use
property files for setting the dbURL and dbName,dbDriver
I have to use the packages which I mentioned earlier it seems.
So how can I use that.Where the packages are available to download.
Sundar
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sundar!
There is no need for u to download any packages.They are the classes used by the webserver.I am not very sure but,they r available in rt.jar
Preethi
 
Suneel Setlur
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sundar
Try this link. http://www.javaranch.com/ubb/Forum7/HTML/001822.html

------------------
Suneel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic