A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
which is better sql:query or DAO class
Joined: Jul 19, 2007
Sep 05, 2007 01:13:00
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 struts framework we are using DAO class.
which is better to use either DAO class or jstl tag in
,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 JSP 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
java 1.5 list iteration using jstl tag
forEach with a resultSet ?
Using JSTL in scriplets - compile error
Populating one drop down based on the other
How to get a connection from the connection pool in a servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015