• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to be ready for Struts programming?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm totally new to Struts and I'm looking around for tutorials and books to learn it.
I can already program using J2EE and then I already have Eclipse and Tomcat correctly set and working for JSP.

The problem is that reading different books and tutorials it looks that there is not a unique structure for folders and files.
I use MyEclipse 8.6 which has a function which applied to a project creates the whole structure needed by Struts2, imports the basics jar libraries and creates the xml files, but this is different from the structure that I can see from the blank Struts2 application supplied with Struts2 package, it is also different from the structure explained by the book "Manning- Struts2 in action" and also different from what the book "Apache Struts 2 Web Application Development" says.
All these books, tutorials, plugins... differ from eachother.

This is confusing me and I don't know which one to follow.

Could you suggest me a link from where to learn how to use Struts2 or a book which explains clearly everything step by step?
 
Ranch Hand
Posts: 122
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought Manning Struts 2 in Action did a decent job .. thats how I learned Struts 2 back in 08' ... I'll still go back and reference it once in a while ... i thought they wrote a decent example in the late chapters ...
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Luigi Caradonna wrote:
The problem is that reading different books and tutorials it looks that there is not a unique structure for folders and files.



Struts does not require one to use a particular structure for one's project. I follow the structure specified in the Tomcat Application Developer's Guide. The Tomcat guide uses Ant to do builds. Many developers use Maven as a build tool. It uses a different directory structure, so that may account for the differences in the examples you are seeing.
I never use IDE's to do builds. It's convenient, but if one is working in a team it is nearly impossible to keep all the developer's IDE's synchronised, much less reproduce the build on a server or build a previous version of an application.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manning Struts 2 in Action can be helpful
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic