File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes A struts2 skeleton project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A struts2 skeleton project" Watch "A struts2 skeleton project" New topic

A struts2 skeleton project

Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Greetings fellow ranchers,

I was coming across numerous questions from newbies in struts2 about basic configurations issues, how-to setup action classes, what configurations to do in the struts config files, naming ( and the list goes on .... ) so I thought to make a default skeleton project for struts2 just for this purpose. I have pushed this up on my personal git repo and anyone can pull and use it to compare his/her project configurations or even build his own on top of my skeleton project.

Of-course I am open to discussions and contributions along with advices as to how to improve it more. The link to the git repo is here

Good luck on your struts2 projects people

Muhammad Saif Asif Mirza
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

There's already a number of examples, including a "blank" skeleton application, included in the Struts distribution and available separately as Maven archetypes.

[How To Ask Questions On JavaRanch]
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Yes you are right about that. My project is actually an extension of these in which I have setup a single action class, implemented basic Action functionalities. Theres also a default test case that any user can change as per his/her requirements and I have also implemented the log4j logger along with its configurations. So right now my project is more of a plug and play type where you can simple pull it up and run it as it is.

The reason why I implemented an action flow is that sometimes I noticed that new users of struts are able to setup everything allright and still they are confused about placing the JSP and action classes, so for this purpose I have already implemented a default easy to understand structure of folders and source folders as well that any new user can easily understand and implement his own project on top of it.

Your feed-back is highly appreciated on it and if you notice any bug , please do file a bug at the issues tab in that repo over git
I agree. Here's the link:
subject: A struts2 skeleton project
It's not a secret anymore!