permaculture playing cards*
The moose likes Struts and the fly likes Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource" Watch "Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource" New topic
Author

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

maggie karve
Ranch Hand

Joined: Dec 29, 2009
Posts: 187
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

Joined: Oct 29, 2001
Posts: 8935
    
    9

Please SearchFirst. The same question has been asked several times before.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
maggie karve
Ranch Hand

Joined: Dec 29, 2009
Posts: 187
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

Joined: Oct 29, 2001
Posts: 8935
    
    9

Did you read the FAQ entry I posted in the thread I linked to?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource