This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes retrive data from oracle database using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "retrive data from oracle database using struts" Watch "retrive data from oracle database using struts" New topic
Author

retrive data from oracle database using struts

satyasandha samal
Greenhorn

Joined: Aug 11, 2009
Posts: 5
hi[b], any one help me,
i am new in struts,my problem is how to retriv data from oracle database sing struts framework [size=12] [/size][color=#444444] [/color]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Except that you don't retrieve data using Struts; Struts is a web application framework and is not directly related to the database at all (except for the long-deprecated datasource configuration element that you shouldn't use).

So the question really is are you going to use JDBC? Hibernate or other ORM? Spring?
nader ibrahim
Greenhorn

Joined: Aug 09, 2010
Posts: 6
David Newton wrote:(except for the long-deprecated datasource configuration element that you shouldn't use).


When was datasource deprecated?
What do you use in it's place now?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It was deprecated after Struts 1.1. You'd use any of the normal data source methods, like JNDI, Spring, etc.
nader ibrahim
Greenhorn

Joined: Aug 09, 2010
Posts: 6
Doesn't Spring also use a datasource? Or are you saying just datasource for struts is deprecated?

Sorry if my questions are noob...i'm new to java.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The datasource element in the old Struts 1 configuration file is deprecated. The term "data source" is generic and used all over the place.
nader ibrahim
Greenhorn

Joined: Aug 09, 2010
Posts: 6
Got it. Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retrive data from oracle database using struts
 
Similar Threads
html:select
struts 1: form data pop up back when the page is visited again?
retreiving a text file from oracle database using frontend JSP
how connect with database using hyper link
to listen database table by java