Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource

 
maggie karve
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...i have read in forums that using datasource is not a good option...how can i connect to database using struts 1....i want to do it in both in Struts 1 as well as Struts2..
When i use datasource in my stuts-config.xml,i get an error

struts-config.xml

and my Action class:AddAction.java
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst. The same question has been asked several times before.
 
maggie karve
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i didnt get an appropriate reply..i have read that its a bad style to use datasource now...
but can you tell me whether will i be able to acccess database using struts 1..i know we can in struts 2....using hibernate..

please reply
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the FAQ entry I posted in the thread I linked to?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic