This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "A struts2 skeleton project" Watch "A struts2 skeleton project" New topic
Author

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
OCJA(5/6) OCJP(6) OCJWCD(6)
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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
 
 
subject: A struts2 skeleton project
 
Similar Threads
Pagination in Struts2
migration to Struts2
Eclipse without "projects"
Struts2 with RAD7
Struts2 config error