A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
which is better sql:query or DAO class
Joined: Jul 19, 2007
Sep 05, 2007 01:13:00
1.In Struts framework we are using datasource(connection pooling)
we stored and retrieved value from database using DAO class.
2.But in JSTL core having <sql:query>,<sql atasource> ect.
but i am working in
framework we are using DAO class.
which is better to use either DAO class or jstl tag in jsp,please tell me the reason?
Judge a man by his questions rather than his answers
SCJP 1.5 97%
Joined: Nov 24, 2005
Sep 05, 2007 02:43:00
Avoid using JSTL's sql tags. Database processing does not belong to
views. You should keep things clean, and access the database from an appropriate class (like a DAO)
All roads lead to JavaRanch
Joined: Dec 11, 2004
Sep 05, 2007 04:17:00
Please don't ask the same question in multiple forums.
Doing so is called cross-posting. It causes duplication of effort and is a waste of people's time.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: which is better sql:query or DAO class
forEach with a resultSet ?
which one is better to use in project
Populating one drop down based on the other
Using JSTL in scriplets - compile error
java 1.5 list iteration using jstl tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014