wood burning stoves*
The moose likes Beginning Java and the fly likes Java Class Naming Convention Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Class Naming Convention" Watch "Java Class Naming Convention" New topic

Java Class Naming Convention

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Dear friends,

coming to the point, It is better practice to make a jsp file name as start with small case; example : performLogin , so container like tomcat generate java class[servlet] name as like jsp file name; example : performLogin_jsp . is it not voilating the convention rule that java class name should start with capital letter.

looking for some comments on this . thanks
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

The naming convention is just a convention, not a must. Although I would never think of writing a class starting with a lowercase letter. But as far as JSPs are concerned, this happens behind the scenes. All you see is JSPs, not the translated servlet. So, who cares ?

[My Blog]
All roads lead to JavaRanch
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

well christophe, thank you
jQuery in Action, 2nd edition
subject: Java Class Naming Convention
Similar Threads
Why filename.java should be same as public class name declared inside java file
String int
stange problem
Servlet's web.xml
Is compiling anonymous classes in jdk1.5.0 beta different?