Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts framework question.. thanks..

 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi e'body

I am pretty new to Struts; I am just working on my first application using STUTS, and in accessing the data Source and working on Databases, I am using an approach something like:

I create a class which implements PlugIn and in the init method i extract the dataSource and put it in the ServletContext..

and in every action class i retrieve it from the ServletContext..

Any thing like a bad design on this approach..??? I think this is ok, but just want to hear about your opinions and want to know how you extract the datasource in Struts framework..

I really appreciate your help in this matter.. thanks again

 
Jack Daniel
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys, looking forward for your suggestions, on how you access the Data Source..

Thanks :-)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic