aspose file tools*
The moose likes Struts and the fly likes Naming conventions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Naming conventions" Watch "Naming conventions" New topic
Author

Naming conventions

A knibbs
Ranch Hand

Joined: Aug 23, 2006
Posts: 158
Hi again all. I have gotten my project to a point where I realized that I was naming my classes what I wanted, instead of finding out if there is any naming conventions for struts actions and forms. If anyone can point out any standardizations I would be appreciative. I suspect that standardizations will make it easier for me to use wildcards in my mappings and what not.
[ January 23, 2007: Message edited by: A knibbs ]
A knibbs
Ranch Hand

Joined: Aug 23, 2006
Posts: 158
Is there no standardization documentation or rules of thumb ?
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I had started to type a response back when you first posted, but I guess I did not have time to finish my thoughts. Yes, I think it is important for your project to have a consistent naming convention, but I don't know of any global standards or recommendations. I can share an example of how I typically name my actions, forms and action classes:


I suspect that standardizations will make it easier for me to use wildcards in my mappings..

I am curious...I do not use a version of Struts that supports wildcards. It seems really useful in theory because a lot of my action mappings are almost exactly alike. The place where my actions differ the most is with the list of forwards. This makes me wonder about the reality of using wildcards in action mappings.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Naming conventions