• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create data source in Struts 2

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am developing a simple Struts2 based application which has login module and I have the user credentials in MySql database.
Could some one assist on how create datasource in Struts2 to MySql where I would fetch the users infromation from the database
(Also I dont want to use Class loader to load the jdbc drivers and im using Tomcat container)
thanks in advance.
Praveen
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please see EaseUp. I have edited your message subject accordingly.

This has nothing to do with Struts 2; there are a number of ways to create a data source. Without any further information about what you actually want, your environment, etc. it's impossible to help. I'd suggest looking in to JNDI and/or Spring as a first guess at what you actually need.
 
reply
    Bookmark Topic Watch Topic
  • New Topic