File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing DataSource From Struts

 
Praful Thakare
Ranch Hand
Posts: 642
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

We have an Application build in struts, but therez an odd HttpServlet which
dose some database activity, and I need to access the datasource which I am using for entire application thru Action class as

DataSource = this.getDataSource(request,"dsname");

kindly help me out in this.

One way I know is making Instance of ActionClass in my servlet and calling this method, but dough if its a efficient way to do so.


Warm Regards
-Praful
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Struts forum.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic