Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to connect struts1.1 with database ?

 
Abhineet Joon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Abhineet Joon
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic