Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
A separate for for connecting jsp to database
wemimo Aina
Greenhorn
Posts: 1
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can someone help me, I want a separate
jsp
file that can connect to database instead connecting to the database in every JSP file. I am using Netbeans
IDE
with Glass fish sever
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 8 years ago
2
Number of slices to send:
Optional 'thank-you' note:
Send
You should
not be connection to
any
database in a JSP. JSPs are
view
components. Your database connections should be made in model classes.
Please read
this article
to understand how to structure modern
Java
web applications.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Can we use glass fish for AXIS web service
Hibernate in Netbeans 6.9.1
Tomcat5.0 with netbeans 3.5 ?
SEVERE: java.lang.RuntimeException: Invalid resource :
how to connect to a database in hibernate
More...