wood burning stoves 2.0*
The moose likes Struts and the fly likes how to connect struts1.1 with database ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to connect struts1.1 with database ?" Watch "how to connect struts1.1 with database ?" New topic
Author

how to connect struts1.1 with database ?

Abhineet Joon
Greenhorn

Joined: Jul 29, 2011
Posts: 17
Please provide a basic overview as to connect struts with database. I am getting error in struts-config.xml when using <datasources> tags
Orton K Randy
Ranch Hand

Joined: Aug 12, 2011
Posts: 41

What error are you getting? Also, a thread of similar sort on same topic does already exist here. See if it helps.

I assume you're aware of the actual tag that is: <data-sources> and not <datasources> or something. If you're still facing issues, make sure you've gone through Struts FAQ on DB connectivity once.

Coderanch, best ever forum on the net. Hands down.
Abhineet Joon
Greenhorn

Joined: Jul 29, 2011
Posts: 17
hi orton,

I googled and able to connect to the database but now I am facing some trouble in showing that value to the JSP page. Can you please provide any code or link which could help ?
 
GeeCON Prague 2014
 
subject: how to connect struts1.1 with database ?