This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes How to configure Struts 2 in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to configure Struts 2 in eclipse" Watch "How to configure Struts 2 in eclipse" New topic

How to configure Struts 2 in eclipse

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 203
i wanted to know how should i configure struts 2 in eclipse. i have not understood one thing about eclipse. Is it really necessary to add external jars in every project cant i add the Struts 2 jar file once so that whenever i want my project to have struts 2 capability i can simple include the jars instead of adding the jars for every project. cant i configure my eclipse 3.5 just like myeclipse 8.0 that provides struts 2 capabilities. in order to create a struts 2 project in Myeclipse all you need to do is

1. create a web project
2. right click on the web-project
3. go to MyEclipse
4. select "Add struts capability" and do the configuration for Struts 2.

cant i configure myeclipse to act in a similar way.

I have downloaded the Struts 2.1.8 and there are so many jar files in the lib folder do i have to add all the jars in every Struts 2 project that i create. cant i add the jars just once for god sake !

David Newton

Joined: Sep 29, 2008
Posts: 12617

You should only add the jars you actually need--not all of them.

And yes, if you're not using an IDE that will do it automatically, you need to do it manually, by definition. This is why people use things like Maven or Ant. Or just have a directory of the typical jars you need and import them into your lib directory--neither difficult nor particularly time-consuming.
I agree. Here's the link:
subject: How to configure Struts 2 in eclipse
It's not a secret anymore!