File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 14688

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
I agree. Here's the link:
subject: Java Class Naming Convention
It's not a secret anymore!