aspose file tools*
The moose likes Struts and the fly likes Alternative ways of installing Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Alternative ways of installing Struts" Watch "Alternative ways of installing Struts" New topic
Author

Alternative ways of installing Struts

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
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?


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
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

Joined: Feb 15, 2005
Posts: 4864
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternative ways of installing Struts