File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
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.
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
Recursive Java programming method for executing recursive SQL queries
How to get MSAccess SQL Query using Java
sql query stored in the xml, parsed and executed from java - throws malformed exception
SQL benchmarking with maven
listing hibernate named queries from java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015