File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Naming conventions

 
A knibbs
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there no standardization documentation or rules of thumb ?
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic