• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrive data from oracle database using struts

 
satyasandha samal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was deprecated after Struts 1.1. You'd use any of the normal data source methods, like JNDI, Spring, etc.
 
nader ibrahim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it. Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic