A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Struts sql query grouping
Joined: Sep 01, 2011
Feb 16, 2012 04:04:04
I am creating a web application in struts2, in which i used many sql queries in different
but i like to group all sql queries of my project in single java file and like to call that java class for the desired query execution.
can you help out from here...............
Joined: Oct 29, 2001
Feb 16, 2012 06:18:33
Struts is an implementation of the
Front Controller Pattern
. It has little or nothing to do with how you interact with a database. See the FAQ entry
Accessing a Database
for the recommended course of action.
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
Joined: Jun 08, 2010
Feb 16, 2012 09:13:22
In case if you are using
you can get the required output by creating a common DAO class for your queries ...
I would suggest you to use hibernate instead
I agree. Here's the link:
subject: Struts sql query grouping
How to get MSAccess SQL Query using Java
SQL benchmarking with maven
Recursive Java programming method for executing recursive SQL queries
listing hibernate named queries from java
sql query stored in the xml, parsed and executed from java - throws malformed exception
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014