This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative ways of installing Struts

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys. I was wondering if there are other ways of installing Struts aside from putting it somewhere in your drive and pointing the CLASSPATH to it?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no install program for struts, if that's what you mean. If you want something more automatic than just unzipping it and pointing to it, use an IDE. Both NetBeans and Eclipse (well, MyEclipse, anyway) have wizards that will create a struts project for you complete with all the necessary jar files, a basic struts-config.xml file and the correct entries in your web.xml file.
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Merrill. It would seem like Eclipse automatically put the jars in my WEB-INF\lib except from my JDBC drivers such as jTDS. If I have a MySQL jar ofor instance, is it ok to put it in my WEB-INF\lib rather than in my JRE lib? Thanks!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using the Struts DataSource or some custom connection pooling, it's OK to put your JDBC drivers in your WEB-INF/lib directory. However, if you're using your App Server's connection pooling (the recommended approach) you will need to put the JDBC driver wherever the App Server documentation tells you to put it. Often it will be in the App Server's common area for jar files. No matter where it is, your IDE will still need a reference to it in the classpath for your project.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic