wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts framework question.. thanks.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts framework question.. thanks.." Watch "Struts framework question.. thanks.." New topic

Struts framework question.. thanks..

Jack Daniel
Ranch Hand

Joined: Jun 15, 2002
Posts: 163
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

Joined: Jun 15, 2002
Posts: 163
guys, looking forward for your suggestions, on how you access the Data Source..

Thanks :-)
It is sorta covered in the JavaRanch Style Guide.
subject: Struts framework question.. thanks..
Similar Threads
please help on my doubts.. ;-)
J2EE Database Access ..
Datasource JNDI Lookup in WSAD from standalone app
The correct way of Creating a Data Source for Oracle in WSAD5.0 ??
ServeltContextListener for DataSource