Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure Struts 2 in eclipse

 
shukla raghav
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !

Troubled
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic